From: Pierce Lopez Date: Wed, 12 Jun 2019 19:34:02 +0000 (-0400) Subject: curl_httpclient: fix disabled decompress_response X-Git-Tag: v6.1.0b1~71^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=256b81c95d6f4864c5ec21bc4a57ab66fdffb709;p=thirdparty%2Ftornado.git curl_httpclient: fix disabled decompress_response by setting None (NULL) instead of "none" for ENCODING reported by Andrey Oparin --- diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py index a867d3536..e052c141b 100644 --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -383,7 +383,7 @@ class CurlAsyncHTTPClient(AsyncHTTPClient): if request.decompress_response: curl.setopt(pycurl.ENCODING, "gzip,deflate") else: - curl.setopt(pycurl.ENCODING, "none") + curl.setopt(pycurl.ENCODING, None) if request.proxy_host and request.proxy_port: curl.setopt(pycurl.PROXY, request.proxy_host) curl.setopt(pycurl.PROXYPORT, request.proxy_port)