aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2011-10-08 15:19:28 +0200
committerMarcin Kuzminski <marcin@python-works.com>2011-10-08 15:19:28 +0200
commit749d0d5a04d8b66b75ed53bd048389913739fc0c (patch)
tree31a4decdc144a7c709af7195a337b93120102701
parenta1e917b7680f8282c089b96eb4b5adbb83c25761 (diff)
fixes problem with basic auth and pushes
--HG-- branch : beta
-rw-r--r--rhodecode/config/middleware.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py
index 354c3a60..aee638ed 100644
--- a/rhodecode/config/middleware.py
+++ b/rhodecode/config/middleware.py
@@ -51,6 +51,12 @@ def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
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 @@ def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
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