This commit is contained in:
keita
2021-04-01 21:56:56 +09:00
parent 1e31c756ce
commit f97deb5c36
6 changed files with 45 additions and 47 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ void HttpPost::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth,
("Content-Disposition: form-data; name=\"" + key + "\";\r\n\r\n" + value + "\r\n");
}
requestBody += (std::string("--") + "milkcocoa0902" + "--" + "\r\n");
}else if(contentType_ == "application/json"){
} else if (contentType_ == "application/json") {
requestBody = bodyParam_["data"];
}
}
@@ -97,7 +97,7 @@ void HttpPost::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth,
contentType = contentType_;
} else if (contentType_ == "multipart/form-data") {
contentType = contentType_ + "; boundary=milkcocoa0902";
}else if(contentType_ == "application/json"){
} else if (contentType_ == "application/json") {
contentType_ = "application/json";
}