Fix the ambiguity of the contructors of FormPart.

This commit is contained in:
Adam Gu
2019-07-14 09:01:48 +08:00
parent 381b148806
commit 2a20030f7e
4 changed files with 43 additions and 31 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
TEST(FormBodyTest, Payload) {
std::vector<webcc::FormPartPtr> parts{
std::make_shared<webcc::FormPart>("json", "{}", "application/json")
webcc::FormPart::New("json", "{}", "application/json")
};
webcc::FormBody form_body{ parts, "123456" };