Skip to content

Commit d486742

Browse files
committed
Fixes #6106
1 parent a56a6b1 commit d486742

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.9.5"
23+
VERSION = "1.10.9.6"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,10 @@ class _(dict):
10721072
errMsg += "function '%s' ('%s')" % (function.__name__, getSafeExString(ex))
10731073
raise SqlmapGenericException(errMsg)
10741074

1075+
# a postprocess function may replace responseHeaders with a plain dict lacking
1076+
# the internal '.headers' attribute expected further down (e.g. in processResponse())
1077+
responseHeaders = patchHeaders(responseHeaders)
1078+
10751079
if isinstance(page, six.binary_type):
10761080
if HTTP_HEADER.CONTENT_TYPE in (responseHeaders or {}) and not re.search(TEXT_CONTENT_TYPE_REGEX, responseHeaders[HTTP_HEADER.CONTENT_TYPE]):
10771081
page = six.text_type(page, errors="ignore")

0 commit comments

Comments
 (0)