Skip to content

Commit

Permalink
Merge c126516 from 2.13 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed May 28, 2012
1 parent f6dbdda commit 4e48e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZPublisher/HTTPRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ def __init__(self, stdin, environ, response, clean=0):
if server_url is not None:
other['SERVER_URL'] = server_url = server_url.strip()
else:
if 'HTTPS' in environ and (
environ['HTTPS'] == "on" or environ['HTTPS'] == "ON"):
https_environ = environ.get('HTTPS', False)
if https_environ and https_environ in ('on', 'ON', '1'):
protocol = 'https'
elif ('SERVER_PORT_SECURE' in environ and
environ['SERVER_PORT_SECURE'] == "1"):
Expand Down

0 comments on commit 4e48e5c

Please sign in to comment.