From a3892f5a6632550bf0c14c18e6902f6ae06bb567 Mon Sep 17 00:00:00 2001 From: Jeija Date: Wed, 17 Feb 2016 20:36:51 +0100 Subject: Fix HTTPFetchRequest performing a GET request if post_data is supplied Instead, perform a POST request with post_data. --- src/httpfetch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index f10351a01..1a19dd082 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -262,7 +262,7 @@ HTTPFetchOngoing::HTTPFetchOngoing(HTTPFetchRequest request_, CurlHandlePool *po } // Set POST (or GET) data - if (request.post_fields.empty()) { + if (request.post_fields.empty() && request.post_data.empty()) { curl_easy_setopt(curl, CURLOPT_HTTPGET, 1); } else if (request.multipart) { curl_httppost *last = NULL; -- cgit v1.2.3