Permalink
Browse files

err, use env.get('wsgi.url_scheme') instead of env['wsgi.url_scheme']

  • Loading branch information...
1 parent 4642420 commit abe635eef79292f6e85a9e3d0208071f7b979366 @anandology anandology committed Dec 10, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/application.py
View
@@ -314,7 +314,7 @@ def load(self, env):
ctx.environ = ctx.env = env
ctx.host = env.get('HTTP_HOST')
- if env['wsgi.url_scheme'] in ['http', 'https']:
+ if env.get('wsgi.url_scheme') in ['http', 'https']:
ctx.protocol = env['wsgi.url_scheme']
elif env.get('HTTPS', '').lower() in ['on', 'true']:
ctx.protocol = 'https'

0 comments on commit abe635e

Please sign in to comment.