Skip to content

Commit

Permalink
[#3089] move RootPathMiddlware up the WSGI stack so it doesn't impact…
Browse files Browse the repository at this point in the history
… other middleware
  • Loading branch information
Mark Gregson committed Jun 4, 2016
1 parent debc9fb commit 16a8192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/config/middleware.py
Expand Up @@ -88,6 +88,8 @@ def make_pylons_stack(conf, full_stack=True, static_files=True, **app_conf):
for plugin in PluginImplementations(IMiddleware):
app = plugin.make_middleware(app, config)

app = RootPathMiddleware(app, config)

# Routing/Session/Cache Middleware
app = RoutesMiddleware(app, config['routes.map'])
# we want to be able to retrieve the routes middleware to be able to update
Expand Down Expand Up @@ -200,8 +202,6 @@ def make_pylons_stack(conf, full_stack=True, static_files=True, **app_conf):
if asbool(config.get('ckan.tracking_enabled', 'false')):
app = TrackingMiddleware(app, config)

app = RootPathMiddleware(app, config)

return app


Expand Down

0 comments on commit 16a8192

Please sign in to comment.