Add encode_url() call to Client class when adding parameter values.

This commit is contained in:
Hans Erickson 2019-05-20 09:48:06 -05:00
parent 3fea8adf5d
commit f3f4ab8499

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");