diff options
author | 2013-09-11 13:07:18 +0200 | |
---|---|---|
committer | 2013-09-11 13:07:18 +0200 | |
commit | 6104151b9f5e682ba1f3c2e09c28604066b30fdf (patch) | |
tree | b9a1d6d6e84fdcd58ed3b7130a72439b7c37c8f0 /pyload/web/middlewares.py | |
parent | container upload and url parser for linkgrabber (diff) | |
download | pyload-6104151b9f5e682ba1f3c2e09c28604066b30fdf.tar.xz |
gzip files on build, disabled gzip middleware
Diffstat (limited to 'pyload/web/middlewares.py')
-rw-r--r-- | pyload/web/middlewares.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pyload/web/middlewares.py b/pyload/web/middlewares.py index aeb65fde5..074681b8f 100644 --- a/pyload/web/middlewares.py +++ b/pyload/web/middlewares.py @@ -38,6 +38,7 @@ class PrefixMiddleware(object): # WSGI middleware # Gzip-encodes the response. +# TODO: not in use anymore, because of pre-gzipped resources class GZipMiddleWare(object): def __init__(self, application, compress_level=6): @@ -111,9 +112,6 @@ class GzipResponse(object): out.close() return [s] - # TODO: also writes large files to stringbuffer - # avoids optimized send_file and causes memory shortage - # pre-gzipped resources would make this obsolete def finish_response(self, app_iter): if self.compressible: output = gzip.GzipFile(mode='wb', compresslevel=self.compress_level, |