scgi gzip support, thanks Michele
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.3 (2011-12-09 08:59:09) dev
|
||||
Version 1.99.3 (2011-12-09 09:26:27) dev
|
||||
|
||||
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user