We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3d724 commit ea66280Copy full SHA for ea66280
proxy/http/responses.py
@@ -90,7 +90,7 @@ def okResponse(
90
**kwargs: Any,
91
) -> memoryview:
92
do_compress: bool = False
93
- if compress and flags.args and content and len(content) > flags.args.min_compression_limit:
+ if flags.args and compress and content and len(content) > flags.args.min_compression_limit:
94
do_compress = True
95
if not headers:
96
headers = {}
proxy/http/server/pac_plugin.py
@@ -80,7 +80,7 @@ def cache_pac_file_response(self) -> None:
80
content=content,
81
headers={
82
b'Content-Type': b'application/x-ns-proxy-autoconfig',
83
- b'Content-Encoding': b'gzip',
84
},
85
conn_close=True,
+ compress=False,
86
)
0 commit comments