From 7aa9a060c0192f61ed8b033221b995528c21329d Mon Sep 17 00:00:00 2001 From: keita Date: Thu, 11 Mar 2021 20:38:37 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=91=E3=83=BC=E3=82=BB=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=A8=E3=83=B3=E3=82=B3=E3=83=BC=E3=83=89=E3=81=8C=E4=BA=8C?= =?UTF-8?q?=E9=87=8D=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cocoatweet/api/interface/httpPost.cc | 2 +- src/cocoatweet/oauth/oauth.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, "&");