mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 20:39:59 +00:00
Merge remote-tracking branch 'proxy/patch-1'
This commit is contained in:
commit
a669eacde9
@ -49,7 +49,7 @@ class ReverseProxied(object):
|
|||||||
scheme = environ.get('HTTP_X_SCHEME', '')
|
scheme = environ.get('HTTP_X_SCHEME', '')
|
||||||
if scheme:
|
if scheme:
|
||||||
environ['wsgi.url_scheme'] = scheme
|
environ['wsgi.url_scheme'] = scheme
|
||||||
servr = environ.get('HTTP_X_FORWARDED_SERVER', '')
|
servr = environ.get('HTTP_X_FORWARDED_HOST', '')
|
||||||
if servr:
|
if servr:
|
||||||
environ['HTTP_HOST'] = servr
|
environ['HTTP_HOST'] = servr
|
||||||
return self.app(environ, start_response)
|
return self.app(environ, start_response)
|
||||||
|
Loading…
Reference in New Issue
Block a user