Merge remote-tracking branch 'proxy/patch-1'
This commit is contained in:
commit
a669eacde9
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class ReverseProxied(object):
|
|||
scheme = environ.get('HTTP_X_SCHEME', '')
|
||||
if scheme:
|
||||
environ['wsgi.url_scheme'] = scheme
|
||||
servr = environ.get('HTTP_X_FORWARDED_SERVER', '')
|
||||
servr = environ.get('HTTP_X_FORWARDED_HOST', '')
|
||||
if servr:
|
||||
environ['HTTP_HOST'] = servr
|
||||
return self.app(environ, start_response)
|
||||
|
|
Loading…
Reference in a new issue