From a8d81a7962339d24459de6b35f79d5327521b254 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 17 Mar 2020 11:10:52 +0100 Subject: [PATCH] Fixes #4141 --- lib/core/patch.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/patch.py b/lib/core/patch.py index b23651b57..b1c5773dd 100644 --- a/lib/core/patch.py +++ b/lib/core/patch.py @@ -52,7 +52,7 @@ def dirtyPatches(): _http_client.HTTPConnection.__send_output = _http_client.HTTPConnection._send_output def _send_output(self, *args, **kwargs): - if conf.chunked and "encode_chunked" in kwargs: + if conf.get("chunked") and "encode_chunked" in kwargs: kwargs["encode_chunked"] = False self.__send_output(*args, **kwargs) diff --git a/lib/core/settings.py b/lib/core/settings.py index 83ae4eff2..9b4a4679e 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.4.3.8" +VERSION = "1.4.3.9" 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)