Exclude port 443 from host http header

This commit is contained in:
Liam Stanley 2016-04-27 04:16:36 -04:00
parent 3ca245de52
commit 3e1eebf95d
1 changed files with 1 additions and 1 deletions

View File

@ -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)