fixed streamer gzip expiration, thanks Niphlod

This commit is contained in:
mdipierro
2012-12-17 17:16:09 -06:00
parent 4599dcd988
commit 5140564fc5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ def stream_file_or_304_or_206(
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:
if os.path.isfile(gzipped) and os.path.getmtime(gzipped) >= modified:
static_file = gzipped
fsize = os.path.getsize(gzipped)
headers['Content-Encoding'] = 'gzip'