Commit 41de5166 authored by Brian Lloyd's avatar Brian Lloyd

Fix for collector #429: use vary tag to fix interaction of gzip content

encoding with cache servers.
parent 252f9eda
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
'''CGI Response Output formatter '''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.62 2002/06/12 21:51:39 Brian Exp $''' $Id: HTTPResponse.py,v 1.63 2002/06/14 15:52:49 Brian Exp $'''
__version__='$Revision: 1.62 $'[11:-2] __version__='$Revision: 1.63 $'[11:-2]
import types, os, sys, re import types, os, sys, re
import zlib, struct import zlib, struct
...@@ -378,7 +378,8 @@ class HTTPResponse(BaseResponse): ...@@ -378,7 +378,8 @@ class HTTPResponse(BaseResponse):
elif force or (REQUEST.get('HTTP_ACCEPT_ENCODING','').find('gzip') != -1): elif force or (REQUEST.get('HTTP_ACCEPT_ENCODING','').find('gzip') != -1):
self.use_HTTP_content_compression = 1 self.use_HTTP_content_compression = 1
if not force:
self.appendHeader('Vary', 'Accept-Encoding')
return self.use_HTTP_content_compression return self.use_HTTP_content_compression
......
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