Mercurial > kallithea
changeset 702:a9158dfa05cc beta
added gzip middleware
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 16 Nov 2010 18:36:39 +0100 |
parents | 6602bf1c5546 |
children | 9c1ed03ef5db |
files | rhodecode/config/middleware.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/config/middleware.py Tue Nov 16 15:52:20 2010 +0100 +++ b/rhodecode/config/middleware.py Tue Nov 16 18:36:39 2010 +0100 @@ -11,6 +11,7 @@ from rhodecode.lib.middleware.simplegit import SimpleGit from rhodecode.lib.middleware.https_fixup import HttpsFixup from rhodecode.config.environment import load_environment +from paste.gzipper import make_gzip_middleware def make_app(global_conf, full_stack=True, static_files=True, **app_conf): """Create a Pylons WSGI application and return it @@ -67,6 +68,7 @@ # Serve static files static_app = StaticURLParser(config['pylons.paths']['static_files']) app = Cascade([static_app, app]) + app = make_gzip_middleware(app, global_conf, compress_level=1) app.config = config