# HG changeset patch # User Martin Bornhold # Date 2016-08-08 08:33:13 # Node ID 0e697286258dfdc28963d45d5000c6441e554af2 # Parent 30c23e4b2894253d538972515ad9381cfb2ce34d config: Use settings from pyramid app init for appenlight. diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -358,8 +358,7 @@ def wrap_app_in_wsgi_middlewares(pyramid pyramid_app, config.registry._pylons_compat_config['routes.map'], skip_prefixes=(STATIC_FILE_PREFIX, '/_debug_toolbar')) - pyramid_app, _ = wrap_in_appenlight_if_enabled( - pyramid_app, config.registry._pylons_compat_config) + pyramid_app, _ = wrap_in_appenlight_if_enabled(pyramid_app, settings) if settings['gzip_responses']: pyramid_app = make_gzip_middleware(