Merge pull request #248 from Liamraystanley/patch-1
Exclude port 443 from host http header
This commit is contained in:
commit
f5dae249d1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue