Workaround for Routes/urlgen bug.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 20 Dec 2011 23:06:38 +0000 (00:06 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 20 Dec 2011 23:06:38 +0000 (00:06 +0100)
commit871fc591dd2492d2bdca0a530fdffac14f3feece
treefda18c5f953751b8003dccb0b0bad1ec9f908a1b
parent463a5dcc433f6e4a442eeaee67bd22910cfb2d08
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.
mediagoblin/app.py