diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-21 00:06:38 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-21 00:06:38 +0100 |
commit | 871fc591dd2492d2bdca0a530fdffac14f3feece (patch) | |
tree | fda18c5f953751b8003dccb0b0bad1ec9f908a1b /docs/source/codebase.rst | |
parent | 463a5dcc433f6e4a442eeaee67bd22910cfb2d08 (diff) | |
download | mediagoblin-871fc591dd2492d2bdca0a530fdffac14f3feece.tar.lz mediagoblin-871fc591dd2492d2bdca0a530fdffac14f3feece.tar.xz mediagoblin-871fc591dd2492d2bdca0a530fdffac14f3feece.zip |
Workaround for Routes/urlgen bug.
This is relevant for fcgi:
Some servers (cherokee for example) put "HTTP":"off" in the
environ. And the following code in urlgen breaks on this:
if environ.get('HTTPS') or environ.get('wsgi.url_scheme') == 'https' \
or environ.get('HTTP_X_FORWARDED_PROTO') == 'https':
hostinfo['protocol'] = 'https'
workaround is to remove HTTPS:off from the environ.
Diffstat (limited to 'docs/source/codebase.rst')
0 files changed, 0 insertions, 0 deletions