diff --git a/httplib.h b/httplib.h index 97a3a2e..80d9c05 100644 --- a/httplib.h +++ b/httplib.h @@ -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");