Fix libcurl implementation when using query params

Query parameters were silently dropped
Fixes #195
This commit is contained in:
Fabien Wernli 2016-04-01 14:52:43 +02:00
parent 46148fc081
commit d49837056e
1 changed files with 4 additions and 0 deletions

View File

@ -1856,6 +1856,10 @@ CURLcode make_curl_request(const CString& service_host, const CString& service_u
CString url = CString(use_ssl ? "https" : "http") + "://" + service_host + service_url; CString url = CString(use_ssl ? "https" : "http") + "://" + service_host + service_url;
CString query = build_query_string(params); CString query = build_query_string(params);
if (!query.empty())
{
url = url + "?" + query;
}
if (debug) if (debug)
{ {