Mercurial > kallithea
comparison rhodecode/lib/middleware/simplehg.py @ 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 | 01be209b9828 |
children | 07a6e8c65526 |
comparison
equal
deleted
inserted
replaced
897:a7efcee0f399 | 898:9c4851dce8e6 |
---|---|
67 return self.application(environ, start_response) | 67 return self.application(environ, start_response) |
68 | 68 |
69 proxy_key = 'HTTP_X_REAL_IP' | 69 proxy_key = 'HTTP_X_REAL_IP' |
70 def_key = 'REMOTE_ADDR' | 70 def_key = 'REMOTE_ADDR' |
71 self.ipaddr = environ.get(proxy_key, environ.get(def_key, '0.0.0.0')) | 71 self.ipaddr = environ.get(proxy_key, environ.get(def_key, '0.0.0.0')) |
72 | 72 # skip passing error to error controller |
73 environ['pylons.status_code_redirect'] = True | |
73 #=================================================================== | 74 #=================================================================== |
74 # AUTHENTICATE THIS MERCURIAL REQUEST | 75 # AUTHENTICATE THIS MERCURIAL REQUEST |
75 #=================================================================== | 76 #=================================================================== |
76 username = REMOTE_USER(environ) | 77 username = REMOTE_USER(environ) |
77 | 78 |