Merge "Don't replace the whole app just the wsgi_app backing"

This commit is contained in:
Zuul 2018-07-12 23:56:59 +00:00 committed by Gerrit Code Review
commit d469d6c115
2 changed files with 5 additions and 5 deletions

View File

@ -230,7 +230,7 @@ def application_factory(name='public'):
rtr in ALL_API_ROUTERS]):
dispatch_map['/v3/%s' % pfx] = legacy_dispatcher
application = KeystoneDispatcherMiddleware(
app,
app.wsgi_app = KeystoneDispatcherMiddleware(
app.wsgi_app,
dispatch_map)
return application
return app

View File

@ -122,10 +122,10 @@ def setup_app_middleware(app):
# local_conf, this is all a hold-over from paste-ini and pending
# reworking/removal(s)
factory_func = loaded.driver.factory({}, **mw.conf)
app = factory_func(app)
app.wsgi_app = factory_func(app.wsgi_app)
# Apply werkzeug speficic middleware
app = fixers.ProxyFix(app)
app.wsgi_app = fixers.ProxyFix(app.wsgi_app)
return app