Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proxy/http/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def okResponse(
**kwargs: Any,
) -> memoryview:
do_compress: bool = False
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:
do_compress = True
if not headers:
headers = {}
Expand Down
2 changes: 1 addition & 1 deletion proxy/http/server/pac_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def cache_pac_file_response(self) -> None:
content=content,
headers={
b'Content-Type': b'application/x-ns-proxy-autoconfig',
b'Content-Encoding': b'gzip',
},
conn_close=True,
compress=False,
)