mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Trivial renaming
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user