Ticket #6013: x_forwarded_proto.patch
| File x_forwarded_proto.patch, 586 bytes (added by John Hampton <pacopablo@…>, 5 years ago) |
|---|
-
wsgi.py
70 70 environ['wsgi.url_scheme'] = 'http' 71 71 if environ.get('HTTPS', '').lower() in ('yes', 'on', '1'): 72 72 environ['wsgi.url_scheme'] = 'https' 73 elif environ.get('HTTP_X_FORWARDED_PROTO', '').lower() == 'https': 74 environ['wsgi.url_scheme'] = 'https' 73 75 environ['wsgi.input'] = stdin 74 76 environ['wsgi.errors'] = stderr 75 77 environ['wsgi.multithread'] = self.wsgi_multithread
