mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 19:13:53 +00:00
run-dev: Disable Tornado response decompression.
Apparently Tornado decompresses gzip responses by default. Worse, it fails to adjust the Content-Length header when it does. https://github.com/tornadoweb/tornado/issues/2743 Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
96726c00ce
commit
8d38f0593b
@@ -187,7 +187,13 @@ def transform_url(protocol, path, query, target_port, target_host):
|
||||
def fetch_request(url, callback, **kwargs):
|
||||
# type: (str, Any, **Any) -> Generator[Callable[..., Any], Any, None]
|
||||
# use large timeouts to handle polling requests
|
||||
req = httpclient.HTTPRequest(url, connect_timeout=240.0, request_timeout=240.0, **kwargs)
|
||||
req = httpclient.HTTPRequest(
|
||||
url,
|
||||
connect_timeout=240.0,
|
||||
request_timeout=240.0,
|
||||
decompress_response=False,
|
||||
**kwargs
|
||||
)
|
||||
client = httpclient.AsyncHTTPClient()
|
||||
# wait for response
|
||||
response = yield gen.Task(client.fetch, req)
|
||||
|
||||
Reference in New Issue
Block a user