config: Use settings from pyramid app init for appenlight.

This commit is contained in:
Martin Bornhold 2016-08-08 10:33:13 +02:00
parent 89ac5b779f
commit ef608f6b78

View file

@ -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(