fised issue 1063
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.9 (2012-10-02 14:50:06) dev
|
Version 2.0.9 (2012-10-02 14:55:51) dev
|
||||||
|
|||||||
+2
-2
@@ -95,8 +95,8 @@ def stream_file_or_304_or_206(
|
|||||||
status = 206
|
status = 206
|
||||||
# in all the other cases (not 304, not 206, but 200 or error page)
|
# in all the other cases (not 304, not 206, but 200 or error page)
|
||||||
if status != 206:
|
if status != 206:
|
||||||
if 'gzip' in request.env.http_accept_encoding and\
|
enc = request.env.http_accept_encoding
|
||||||
not 'Content-Encoding' in headers:
|
if enc and 'gzip' in enc and not 'Content-Encoding' in headers:
|
||||||
gzipped = static_file + '.gz'
|
gzipped = static_file + '.gz'
|
||||||
if os.path.isfile(gzipped) and os.path.getmtime(gzipped)>modified:
|
if os.path.isfile(gzipped) and os.path.getmtime(gzipped)>modified:
|
||||||
static_file = gzipped
|
static_file = gzipped
|
||||||
|
|||||||
Reference in New Issue
Block a user