diff options
author | Jeija <norrepli@gmail.com> | 2016-02-17 20:36:51 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-02-22 15:39:19 +0100 |
commit | a3892f5a6632550bf0c14c18e6902f6ae06bb567 (patch) | |
tree | d4a0d11f18418963654c71a785f8421bca4ee004 /src | |
parent | b2aabdfe074d361b69c59f7ea29a85f060330f12 (diff) | |
download | minetest-a3892f5a6632550bf0c14c18e6902f6ae06bb567.tar.gz minetest-a3892f5a6632550bf0c14c18e6902f6ae06bb567.tar.bz2 minetest-a3892f5a6632550bf0c14c18e6902f6ae06bb567.zip |
Fix HTTPFetchRequest performing a GET request if post_data is supplied
Instead, perform a POST request with post_data.
Diffstat (limited to 'src')
-rw-r--r-- | src/httpfetch.cpp | 2 |
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; |