Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
neheb committed Feb 1, 2018
1 parent 7669c97 commit a3ef28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtransmission/web.c
Expand Up @@ -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);
Expand Down

0 comments on commit a3ef28b

Please sign in to comment.