fised issue 1063

This commit is contained in:
Massimo
2012-10-02 14:55:56 -05:00
parent b20e74c899
commit bacff3453b
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.0.9 (2012-10-02 14:50:06) dev
Version 2.0.9 (2012-10-02 14:55:51) dev

View File

@@ -95,8 +95,8 @@ def stream_file_or_304_or_206(
status = 206
# in all the other cases (not 304, not 206, but 200 or error page)
if status != 206:
if 'gzip' in request.env.http_accept_encoding and\
not 'Content-Encoding' in headers:
enc = request.env.http_accept_encoding
if enc and 'gzip' in enc and not 'Content-Encoding' in headers:
gzipped = static_file + '.gz'
if os.path.isfile(gzipped) and os.path.getmtime(gzipped)>modified:
static_file = gzipped