# HG changeset patch # User Marcin Kuzminski # Date 1293730984 -3600 # Node ID 9c4851dce8e636284de1db24289adfa624aa8673 # Parent a7efcee0f399ea8ddab5526ca62a9aa169fc8239 fixed error propagation when using git/mercurial requests diff -r a7efcee0f399 -r 9c4851dce8e6 rhodecode/lib/middleware/simplegit.py --- a/rhodecode/lib/middleware/simplegit.py Thu Dec 30 18:30:09 2010 +0100 +++ b/rhodecode/lib/middleware/simplegit.py Thu Dec 30 18:43:04 2010 +0100 @@ -103,7 +103,8 @@ proxy_key = 'HTTP_X_REAL_IP' def_key = 'REMOTE_ADDR' self.ipaddr = environ.get(proxy_key, environ.get(def_key, '0.0.0.0')) - + # skip passing error to error controller + environ['pylons.status_code_redirect'] = True #=================================================================== # AUTHENTICATE THIS GIT REQUEST #=================================================================== diff -r a7efcee0f399 -r 9c4851dce8e6 rhodecode/lib/middleware/simplehg.py --- a/rhodecode/lib/middleware/simplehg.py Thu Dec 30 18:30:09 2010 +0100 +++ b/rhodecode/lib/middleware/simplehg.py Thu Dec 30 18:43:04 2010 +0100 @@ -69,7 +69,8 @@ proxy_key = 'HTTP_X_REAL_IP' def_key = 'REMOTE_ADDR' self.ipaddr = environ.get(proxy_key, environ.get(def_key, '0.0.0.0')) - + # skip passing error to error controller + environ['pylons.status_code_redirect'] = True #=================================================================== # AUTHENTICATE THIS MERCURIAL REQUEST #===================================================================