mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #199 from faxm0dem/fix/curl-queryparam
Fix libcurl implementation when using query params
This commit is contained in:
commit
ca77935496
4
push.cpp
4
push.cpp
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue