From 8a97e7edcc8a0fd08cd65d5389eb8bfd6d5097aa Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 6 Jun 2019 23:13:34 +0200 Subject: [PATCH] Trivial renaming --- lib/core/settings.py | 2 +- lib/request/connect.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index cf2f30f62..2a8ad6a4a 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.6.27" +VERSION = "1.3.6.28" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/request/connect.py b/lib/request/connect.py index 8d7e70d60..bad21acc8 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -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