Merge pull request #495 from neheb/patch-1

Set compression to curl defaults
This commit is contained in:
Mike Gelfand 2018-02-03 11:27:43 +03:00 committed by GitHub
commit 2c15ca024c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);