# HG changeset patch # User Marcin Kuzminski # Date 1318079968 -7200 # Node ID 72c3cea0175a5599f66a8503f234d58f51b662d2 # Parent c0e6057543ff906f4eb23b79a41d990b7999f832 fixes problem with basic auth and pushes diff -r c0e6057543ff -r 72c3cea0175a rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py Sat Oct 08 03:00:26 2011 +0200 +++ b/rhodecode/config/middleware.py Sat Oct 08 15:19:28 2011 +0200 @@ -51,6 +51,12 @@ from rhodecode.lib.profiler import ProfilingMiddleware app = ProfilingMiddleware(app) + + # we want our low level middleware to get to the request ASAP. We don't + # need any pylons stack middleware in them + app = SimpleHg(app, config) + app = SimpleGit(app, config) + if asbool(full_stack): # Handle Python exceptions app = ErrorHandler(app, global_conf, **config['pylons.errorware']) @@ -74,10 +80,6 @@ app = Cascade([static_app, app]) app = make_gzip_middleware(app, global_conf, compress_level=1) - # we want our low level middleware to get to the request ASAP. We don't - # need any pylons stack middleware in them - app = SimpleHg(app, config) - app = SimpleGit(app, config) app.config = config