mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-19 06:30:23 +00:00
Fixes #6106
This commit is contained in:
parent
a56a6b1f25
commit
d486742eec
2 changed files with 5 additions and 1 deletions
|
|
@ -1072,6 +1072,10 @@ class Connect(object):
|
|||
errMsg += "function '%s' ('%s')" % (function.__name__, getSafeExString(ex))
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
# a postprocess function may replace responseHeaders with a plain dict lacking
|
||||
# the internal '.headers' attribute expected further down (e.g. in processResponse())
|
||||
responseHeaders = patchHeaders(responseHeaders)
|
||||
|
||||
if isinstance(page, six.binary_type):
|
||||
if HTTP_HEADER.CONTENT_TYPE in (responseHeaders or {}) and not re.search(TEXT_CONTENT_TYPE_REGEX, responseHeaders[HTTP_HEADER.CONTENT_TYPE]):
|
||||
page = six.text_type(page, errors="ignore")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue