File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from thirdparty import six
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.10.9.5 "
23+ VERSION = "1.10.9.6 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments