[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] SVN: Zope/trunk/ - Collector #1151: HTTP
From:       Andreas Jung <andreas () andreas-jung ! com>
Date:       2004-12-22 15:49:05
Message-ID: 20041222154905.56C27203297 () mail ! zope ! org
[Download RAW message or body]

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:

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic