From ef608f6b781904020f9eae417d6dc8ba853bbc22 Mon Sep 17 00:00:00 2001 From: Martin Bornhold Date: Mon, 8 Aug 2016 10:33:13 +0200 Subject: [PATCH] config: Use settings from pyramid app init for appenlight. --- rhodecode/config/middleware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py index af6a3a72..bc3db57e 100644 --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -358,8 +358,7 @@ def wrap_app_in_wsgi_middlewares(pyramid_app, config): 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(