summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/httpfetch.cpp2
1 files changed, 1 insertions, 1 deletions
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;