Trying to fix the mess with content_length between versions

This commit is contained in:
Miroslav Stampar 2021-01-31 16:08:02 +01:00
parent 63e44f9ee9
commit 78b1c4f072
2 changed files with 2 additions and 2 deletions

View File

@ -2477,7 +2477,7 @@ def _setTorSocksProxySettings():
def _setHttpChunked():
if conf.chunked and conf.data:
_http_client.HTTPConnection._set_content_length = lambda self, body: None
_http_client.HTTPConnection._set_content_length = lambda self, *args, **kwargs: None
def _checkWebSocket():
if conf.url and (conf.url.startswith("ws:/") or conf.url.startswith("wss:/")):

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.5.1.46"
VERSION = "1.5.1.47"
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)