mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Add encode_url() call to Client class when adding parameter values.
This commit is contained in:
parent
3fea8adf5d
commit
f3f4ab8499
1 changed files with 1 additions and 1 deletions
|
@ -2125,7 +2125,7 @@ Client::Post(const char *path, const Headers &headers, const Params ¶ms) {
|
|||
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");
|
||||
|
|
Loading…
Reference in a new issue