From 74284193dcd360f46e3eccc2240b1a07ce259414 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 16 Sep 2012 15:54:20 -0500 Subject: [PATCH] niphlod is right, no need to to restrict gzip streaming to rocket --- VERSION | 2 +- gluon/streamer.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index aca2278d..64babebd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-16 15:51:47) stable +Version 2.0.9 (2012-09-16 15:54:17) stable diff --git a/gluon/streamer.py b/gluon/streamer.py index ed259638..cf165646 100644 --- a/gluon/streamer.py +++ b/gluon/streamer.py @@ -13,7 +13,6 @@ import time import re import errno import rewrite -from rocket import SERVER_SOFTWARE from http import HTTP from contenttype import contenttype @@ -92,8 +91,7 @@ def stream_file_or_304_or_206( headers['Content-Length'] = '%i' % bytes status = 206 else: - if request.env.server == SERVER_SOFTWARE and \ - 'gzip' in request.env.http_accept_encoding and\ + if 'gzip' in request.env.http_accept_encoding and\ not 'Content-Encoding' in headers: gzipped = static_file + '.gz' if os.path.isfile(gzipped) and os.path.getmtime(gzipped)>modified: