From a3ef28bd681e8abf2ee4a6d90ac2218ccffa82c7 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 30 Jan 2018 13:56:24 -0800 Subject: [PATCH] Set compression to curl defaults While zlib is mandatory for transmission, it is not mandatory for curl. A libcurl that has been compiled with no support for zlib will return no data if compressed responses are set to on. In the basic case this prevents the port checking functionality from working properly. It also prevents web seeding from working as well. --- libtransmission/web.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/web.c b/libtransmission/web.c index a57c85457..df27a0175 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -183,7 +183,7 @@ static CURL* createEasy(tr_session* s, struct tr_web* web, struct tr_web_task* t task->timeout_secs = getTimeoutFromURL(task); curl_easy_setopt(e, CURLOPT_AUTOREFERER, 1L); - curl_easy_setopt(e, CURLOPT_ENCODING, "gzip;q=1.0, deflate, identity"); + curl_easy_setopt(e, CURLOPT_ENCODING, ""); curl_easy_setopt(e, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(e, CURLOPT_MAXREDIRS, -1L); curl_easy_setopt(e, CURLOPT_NOSIGNAL, 1L);