Commit 08ea21d5 authored by Andreas Jung's avatar Andreas Jung

- Collector #1151: HTTP compression was broken on error pages

parent df48363b
......@@ -51,6 +51,8 @@ Zope Changes
Bugs fixed
- Collector #1151: HTTP compression was broken on error pages
- The REQUEST now contains a new entry ACTUAL_URL which contains the
full URL without query string as it appears within the location bar of
the browser. The key has been added to provide a single key that is
......
......@@ -351,7 +351,7 @@ class HTTPResponse(BaseResponse):
self.setHeader('content-length', len(self.body))
self.insertBase()
if self.use_HTTP_content_compression and \
not self.headers.get('content-encoding',None):
self.headers.get('content-encoding', 'gzip') == 'gzip':
# use HTTP content encoding to compress body contents unless
# this response already has another type of content encoding
if content_type.split('/')[0] not in uncompressableMimeMajorTypes:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment