From 62c3efe56828ca2b0ae941436af0358c0d0bdcdc Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Fri, 9 Dec 2011 09:26:44 -0600 Subject: [PATCH] scgi gzip support, thanks Michele --- VERSION | 2 +- scgihandler.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 8c3a44ea..b8366db2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.3 (2011-12-09 08:59:09) dev +Version 1.99.3 (2011-12-09 09:26:27) dev diff --git a/scgihandler.py b/scgihandler.py index 7492897c..bea3d879 100755 --- a/scgihandler.py +++ b/scgihandler.py @@ -54,13 +54,16 @@ import gluon.main # uncomment one of the two imports below depending on the SCGIWSGI server installed #import paste.util.scgiserver as scgi from wsgitools.scgi.forkpool import SCGIServer +from wsgitools.filters import WSGIFilterMiddleware, GzipWSGIFilter + +wsgiapp=WSGIFilterMiddleware(gluon.main.wsgibase, GzipWSGIFilter) if LOGGING: - application = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase, + application = gluon.main.appfactory(wsgiapp=wsgiapp, logfilename='httpserver.log', profilerfilename=None) else: - application = gluon.main.wsgibase + application = wsgiapp if SOFTCRON: from gluon.settings import global_settings