Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 22, 2016
1 parent b2aabdf commit a3892f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpfetch.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a3892f5

Please sign in to comment.