From 256b81c95d6f4864c5ec21bc4a57ab66fdffb709 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Wed, 12 Jun 2019 15:34:02 -0400 Subject: [PATCH] curl_httpclient: fix disabled decompress_response by setting None (NULL) instead of "none" for ENCODING reported by Andrey Oparin --- tornado/curl_httpclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2