From f3f4ab8499a080c5941efaa64cfb83c163b4ae33 Mon Sep 17 00:00:00 2001 From: Hans Erickson Date: Mon, 20 May 2019 09:48:06 -0500 Subject: [PATCH] Add encode_url() call to Client class when adding parameter values. --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");