diff --git a/rhodecode/lib/middleware/simplegit.py b/rhodecode/lib/middleware/simplegit.py --- a/rhodecode/lib/middleware/simplegit.py +++ b/rhodecode/lib/middleware/simplegit.py @@ -103,7 +103,8 @@ class SimpleGit(object): 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 --git a/rhodecode/lib/middleware/simplehg.py b/rhodecode/lib/middleware/simplehg.py --- a/rhodecode/lib/middleware/simplehg.py +++ b/rhodecode/lib/middleware/simplehg.py @@ -69,7 +69,8 @@ class SimpleHg(object): 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 #===================================================================