diff options
Diffstat (limited to 'src/net/HttpClient.cpp')
-rw-r--r-- | src/net/HttpClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/HttpClient.cpp b/src/net/HttpClient.cpp index 90dc4b2..0f64e16 100644 --- a/src/net/HttpClient.cpp +++ b/src/net/HttpClient.cpp @@ -119,9 +119,9 @@ string CurlHttpClient::makeRequest(const Url& url, const vector<HttpReqArg>& arg auto u = url.protocol + "://" + url.host + url.path; curl_easy_setopt(curl, CURLOPT_URL, u.c_str()); + std::string data; if (!args.empty()) { - std::string data; for (auto &a : args) data += a.name + "=" + a.value + "&"; data.resize(data.size() - 1); |