From: sfan5 Date: Sat, 4 Nov 2017 21:19:27 +0000 (+0100) Subject: httpfetch: Enable gzip support X-Git-Tag: 0.4.17~62 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6808a3d144c6c8f4aa4f54196fe6cedbda1f0805;p=oweals%2Fminetest.git httpfetch: Enable gzip support --- diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 3b3f5d331..f7d20100d 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -248,6 +248,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()) {