Skip to content
Permalink
Browse files

Fix HTTPFetchRequest performing a GET request if post_data is supplied

Instead, perform a POST request with post_data.
  • Loading branch information...
Jeija authored and est31 committed Feb 17, 2016
1 parent b2aabdf commit a3892f5a6632550bf0c14c18e6902f6ae06bb567
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit a3892f5

Please sign in to comment.
You can’t perform that action at this time.