Mercurial > kallithea
changeset 898:9c4851dce8e6 beta
fixed error propagation when using git/mercurial requests
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 30 Dec 2010 18:43:04 +0100 |
parents | a7efcee0f399 |
children | d65843e07d3c |
files | rhodecode/lib/middleware/simplegit.py rhodecode/lib/middleware/simplehg.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 #===================================================================
--- 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 #===================================================================