# HG changeset patch # User Marcin Kuzminski # Date 2010-11-16 18:36:39 # Node ID a9158dfa05ccf0efd9f539c85104d875542a893e # Parent 6602bf1c5546f9afd86479a0667ca8992974deaf added gzip middleware diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -11,6 +11,7 @@ from rhodecode.lib.middleware.simplehg i 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 @@ def make_app(global_conf, full_stack=Tru # 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