Trivial renaming

This commit is contained in:
Miroslav Stampar
2019-06-06 23:13:34 +02:00
parent 10152db8ee
commit 8a97e7edcc
2 changed files with 3 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ class Connect(object):
post = _urllib.parse.unquote(post)
post = chunkSplitPostData(post)
websocket_ = url.lower().startswith("ws")
webSocket = url.lower().startswith("ws")
if not _urllib.parse.urlsplit(url).netloc:
url = _urllib.parse.urljoin(conf.url, url)
@@ -434,7 +434,7 @@ class Connect(object):
post = getBytes(post)
if websocket_:
if webSocket:
ws = websocket.WebSocket()
ws.settimeout(timeout)
ws.connect(url, header=("%s: %s" % _ for _ in headers.items() if _[0] not in ("Host",)), cookie=cookie) # WebSocket will add Host field of headers automatically