Merge pull request #248 from Liamraystanley/patch-1
Exclude port 443 from host http header
This commit is contained in:
@@ -77,7 +77,7 @@ def _get_handshake_headers(resource, host, port, options):
|
|||||||
headers.append("GET %s HTTP/1.1" % resource)
|
headers.append("GET %s HTTP/1.1" % resource)
|
||||||
headers.append("Upgrade: websocket")
|
headers.append("Upgrade: websocket")
|
||||||
headers.append("Connection: Upgrade")
|
headers.append("Connection: Upgrade")
|
||||||
if port == 80:
|
if port == 80 or port == 443:
|
||||||
hostport = host
|
hostport = host
|
||||||
else:
|
else:
|
||||||
hostport = "%s:%d" % (host, port)
|
hostport = "%s:%d" % (host, port)
|
||||||
|
Reference in New Issue
Block a user