aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2017-11-04 22:19:27 +0100
committersfan5 <sfan5@live.de>2017-11-04 22:19:27 +0100
commit21f3237fe95a18e97421ea80762f989c7841a181 (patch)
treed814bd1ccefb79c31174e6f2a4c0ccbe64261b7f
parent28841961ba91b943b7478704181604fa3e24e81e (diff)
downloadminetest-21f3237fe95a18e97421ea80762f989c7841a181.tar.gz
minetest-21f3237fe95a18e97421ea80762f989c7841a181.tar.bz2
minetest-21f3237fe95a18e97421ea80762f989c7841a181.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 140bcbe97..d8504ad64 100644
--- a/src/httpfetch.cpp
+++ b/src/httpfetch.cpp
@@ -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()) {