diff --git a/src/cocoatweet/api/interface/httpPost.cc b/src/cocoatweet/api/interface/httpPost.cc index 187b2cb..ebed8cb 100644 --- a/src/cocoatweet/api/interface/httpPost.cc +++ b/src/cocoatweet/api/interface/httpPost.cc @@ -37,7 +37,7 @@ void HttpPost::process(std::weak_ptr _oauth, if (contentType_ == "application/x-www-form-urlencoded") { std::vector tmp; for (const auto& [key, value] : bodyParam_) { - tmp.push_back(key + "=" + CocoaTweet::Util::urlEncode(value)); + tmp.push_back(key + "=" + value); requestBody = CocoaTweet::Util::join(tmp, "&"); } } else if (contentType_ == "multipart/form-data") { diff --git a/src/cocoatweet/oauth/oauth.cc b/src/cocoatweet/oauth/oauth.cc index 07c44e5..8224e68 100644 --- a/src/cocoatweet/oauth/oauth.cc +++ b/src/cocoatweet/oauth/oauth.cc @@ -24,7 +24,7 @@ std::map OAuth1::signature( const std::string& _url) { std::vector tmp; for (const auto& [key, value] : _param) { - tmp.push_back(key + "=" + CocoaTweet::Util::urlEncode(value)); + tmp.push_back(key + "=" + value); } std::string query = CocoaTweet::Util::join(tmp, "&");