summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2017-11-04 22:19:27 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commit6808a3d144c6c8f4aa4f54196fe6cedbda1f0805 (patch)
tree83407b16bfc1784fa87bccddc1b081ee40b399d8
parent4d9bf75d3ab6a181b3113c3231d2e41245795a60 (diff)
downloadminetest-6808a3d144c6c8f4aa4f54196fe6cedbda1f0805.tar.gz
minetest-6808a3d144c6c8f4aa4f54196fe6cedbda1f0805.tar.bz2
minetest-6808a3d144c6c8f4aa4f54196fe6cedbda1f0805.zip
httpfetch: Enable gzip support
-rw-r--r--src/httpfetch.cpp1
1 files changed, 1 insertions, 0 deletions
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()) {