[Zope-Checkins] SVN: Zope/trunk/ - Collector #1151: HTTP compression was broken on error pages

Andreas Jung andreas at andreas-jung.com
Wed Dec 22 10:49:05 EST 2004


Log message for revision 28683:
  - Collector #1151: HTTP compression was broken on error pages
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/ZPublisher/HTTPResponse.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2004-12-22 11:42:52 UTC (rev 28682)
+++ Zope/trunk/doc/CHANGES.txt	2004-12-22 15:49:05 UTC (rev 28683)
@@ -51,6 +51,8 @@
 
     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 

Modified: Zope/trunk/lib/python/ZPublisher/HTTPResponse.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/HTTPResponse.py	2004-12-22 11:42:52 UTC (rev 28682)
+++ Zope/trunk/lib/python/ZPublisher/HTTPResponse.py	2004-12-22 15:49:05 UTC (rev 28683)
@@ -351,7 +351,7 @@
         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:



More information about the Zope-Checkins mailing list