diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py index de605b6..755da18 100644 --- a/main.py +++ b/main.py @@ -144,7 +144,7 @@ class HTTPServer: response = Response(data, STATUS_CODE_NOT_FOUND) # process header data - if response.headers.get("Content-Encoding") is None: + if response.headers.get("Content-Encoding") is None and response.compress: supported_compressions = [x.strip() for x in getattr(request, "Accept-Encoding", "").split(",")] if "br" in supported_compressions: response.headers["Content-Encoding"] = "br" |