Merge pull request #152 from hans-erickson/master

Add encode_url() call to Client class when adding parameter values. (issue #151)
This commit is contained in:
yhirose 2019-05-20 19:41:36 -04:00 committed by GitHub
commit 75989653a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2125,7 +2125,7 @@ Client::Post(const char *path, const Headers &headers, const Params &params) {
if (it != params.begin()) { query += "&"; }
query += it->first;
query += "=";
query += it->second;
query += detail::encode_url(it->second);
}
return Post(path, headers, query, "application/x-www-form-urlencoded");