Hi,
Since version 6.1, OpenERP started using python werkzeug has its web
application server. But they didn't implemented SSL. So I have to use nginx
has a proxy. By doing this, I discovered that werkzeug completly ignores
the "X-Forwarded-Proto" header. So I made a little fix. I hope you will
apply it to the next release. I'm not sure if I did the good thing, you
know your code better than me. Thanks.
*werkzeug/serving.py line 61:*
def make_environ(self):
if '?' in self.path:
path_info, query = self.path.split('?', 1)
else:
path_info = self.path
query = ''
*-* url_scheme = self.server.ssl_context is None and 'http' or 'https'
*+* url_scheme = self.server.ssl_context is None and
self.headers.get('X-Forwarded-Proto', 'http') or 'https'
environ = {
'wsgi.version': (1, 0),
'wsgi.url_scheme': url_scheme,
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pocoo-libs/-/t-skJHNU_5oJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.