Changeset - 9c4851dce8e6
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 15 years ago 2010-12-30 18:43:04
marcin@python-works.com
fixed error propagation when using git/mercurial requests
2 files changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/middleware/simplegit.py
Show inline comments
 
@@ -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
 
        #===================================================================
rhodecode/lib/middleware/simplehg.py
Show inline comments
 
@@ -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
 
        #===================================================================
0 comments (0 inline, 0 general)