From 747951b80becc78a63063b148ee5f2323c18baf8 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 10 Feb 2021 14:09:13 +0100 Subject: [PATCH] Another patch for #4576 --- lib/core/option.py | 4 +++- lib/core/settings.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 131a7466d..83f2f5aee 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -2484,7 +2484,9 @@ def _setHttpChunked(): if header != HTTP_HEADER.CONTENT_LENGTH: self._putheader(header, *values) - _http_client.HTTPConnection._putheader = _http_client.HTTPConnection.putheader + if not hasattr(_http_client.HTTPConnection, "_putheader"): + _http_client.HTTPConnection._putheader = _http_client.HTTPConnection.putheader + _http_client.HTTPConnection.putheader = putheader def _checkWebSocket(): diff --git a/lib/core/settings.py b/lib/core/settings.py index 531a669f8..624f038db 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.5.2.13" +VERSION = "1.5.2.14" 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)