format
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user