署名時にurlEncode

This commit is contained in:
keita
2021-03-10 22:35:04 +09:00
parent 00a568c016
commit 3c99ccab3e
+1 -1
View File
@@ -24,7 +24,7 @@ std::map<std::string, std::string> OAuth1::signature(
const std::string& _url) {
std::vector<std::string> tmp;
for (const auto& [key, value] : _param) {
tmp.push_back(key + "=" + value);
tmp.push_back(key + "=" + CocoaTweet::Util::urlEncode(value));
}
std::string query = CocoaTweet::Util::join(tmp, "&");