projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d9bf75
)
httpfetch: Enable gzip support
author
sfan5
<sfan5@live.de>
Sat, 4 Nov 2017 21:19:27 +0000
(22:19 +0100)
committer
SmallJoker
<mk939@ymail.com>
Sun, 3 Jun 2018 15:32:00 +0000
(17:32 +0200)
src/httpfetch.cpp
patch
|
blob
|
history
diff --git
a/src/httpfetch.cpp
b/src/httpfetch.cpp
index 3b3f5d33126d11a0da4b84132f14cfa1802c1fcd..f7d20100dc21f5bc57e20dd72e7a811363b2d458 100644
(file)
--- 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()) {