[Zope-Checkins] CVS: Packages/ZPublisher - HTTPResponse.py:1.75.2.9
Andreas Jung
andreas at andreas-jung.com
Wed Dec 22 10:51:28 EST 2004
Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv26958/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_7-branch
HTTPResponse.py
Log Message:
- Collector #1151: HTTP compression was broken on error pages
=== Packages/ZPublisher/HTTPResponse.py 1.75.2.8 => 1.75.2.9 ===
--- Packages/ZPublisher/HTTPResponse.py:1.75.2.8 Fri Nov 26 12:24:30 2004
+++ Packages/ZPublisher/HTTPResponse.py Wed Dec 22 10:51:28 2004
@@ -340,7 +340,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