Merge pull request #248 from Liamraystanley/patch-1

Exclude port 443 from host http header
This commit is contained in:
liris 2016-05-10 08:46:40 +09:00
commit f5dae249d1
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)