mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Trivial renaming
This commit is contained in:
parent
10152db8ee
commit
8a97e7edcc
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue