Skip to content

Commit

Permalink
Exclude port 443 from host http header
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstanley committed Apr 27, 2016
1 parent 3ca245d commit 3e1eebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket/_handshake.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _get_handshake_headers(resource, host, port, options):
headers.append("GET %s HTTP/1.1" % resource)
headers.append("Upgrade: websocket")
headers.append("Connection: Upgrade")
if port == 80:
if port == 80 or port == 443:
hostport = host
else:
hostport = "%s:%d" % (host, port)
Expand Down

0 comments on commit 3e1eebf

Please sign in to comment.