You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

  1. From d6655cca7db1b960456811b8206ce222700e010d Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Tue, 30 Jan 2018 13:19:58 -0800
  4. Subject: [PATCH] Remove compressed responses from web servers.
  5. While zlib is mandatory for transmission, it is not mandatory for curl.
  6. A libcurl that has been compiled with no support for zlib will return no data if compressed responses are set to on.
  7. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  8. ---
  9. libtransmission/web.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/libtransmission/web.c b/libtransmission/web.c
  12. index c7f0627..db34976 100644
  13. --- a/libtransmission/web.c
  14. +++ b/libtransmission/web.c
  15. @@ -180,7 +180,7 @@ createEasy (tr_session * s, struct tr_web * web, struct tr_web_task * task)
  16. task->timeout_secs = getTimeoutFromURL (task);
  17. curl_easy_setopt (e, CURLOPT_AUTOREFERER, 1L);
  18. - curl_easy_setopt (e, CURLOPT_ENCODING, "gzip;q=1.0, deflate, identity");
  19. + curl_easy_setopt (e, CURLOPT_ENCODING, "");
  20. curl_easy_setopt (e, CURLOPT_FOLLOWLOCATION, 1L);
  21. curl_easy_setopt (e, CURLOPT_MAXREDIRS, -1L);
  22. curl_easy_setopt (e, CURLOPT_NOSIGNAL, 1L);
  23. --
  24. 2.7.4