X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fhttpfetch.cpp;h=d8504ad64750b1d90f81eaf85b548c458c7dcdfa;hb=d693f95fc3c9b2d487283fc16dc8988c61a94803;hp=c6419a5d661d71b292ad9ab4a3be4c2a9d88a97e;hpb=ae9b5e00989756bb676429530dfe81039009001c;p=minetest.git diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index c6419a5d6..d8504ad64 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -17,15 +17,15 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "socket.h" // for select() -#include "porting.h" // for sleep_ms(), get_sysinfo(), secure_rand_fill_buf() #include "httpfetch.h" +#include "porting.h" // for sleep_ms(), get_sysinfo(), secure_rand_fill_buf() #include #include #include #include #include #include +#include "network/socket.h" // for select() #include "threading/event.h" #include "config.h" #include "exceptions.h" @@ -246,6 +246,7 @@ HTTPFetchOngoing::HTTPFetchOngoing(const HTTPFetchRequest &request_, curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 1); + curl_easy_setopt(curl, CURLOPT_ENCODING, "gzip"); std::string bind_address = g_settings->get("bind_address"); if (!bind_address.empty()) { @@ -642,8 +643,6 @@ class CurlFetchThread : public Thread void *run() { - DSTACK(FUNCTION_NAME); - CurlHandlePool pool; m_multi = curl_multi_init();