From 6104151b9f5e682ba1f3c2e09c28604066b30fdf Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 11 Sep 2013 13:07:18 +0200 Subject: gzip files on build, disabled gzip middleware --- pyload/web/middlewares.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pyload/web/middlewares.py') 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, -- cgit v1.2.3