Skip to content

Commit

Permalink
Merge pull request #248 from Liamraystanley/patch-1
Browse files Browse the repository at this point in the history
Exclude port 443 from host http header
  • Loading branch information
liris committed May 9, 2016
2 parents 3ca245d + 3e1eebf commit f5dae24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket/_handshake.py
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 f5dae24

Please sign in to comment.