There was an error while loading. Please reload this page.
1 parent 7828f61 commit b4fbb9cCopy full SHA for b4fbb9c
lib/request/connect.py
@@ -568,7 +568,7 @@ def getPage(**kwargs):
568
raise SqlmapConnectionException(warnMsg)
569
570
finally:
571
- if HTTP_HEADER.CONTENT_TYPE in (responseHeaders or {}) and responseHeaders[HTTP_HEADER.CONTENT_TYPE] in ("application/octet-stream",):
+ if HTTP_HEADER.CONTENT_TYPE in (responseHeaders or {}) and not re.search(r"(?i)(text|form|message|xml|javascript|ecmascript|json)", responseHeaders[HTTP_HEADER.CONTENT_TYPE]):
572
page = unicode(page, errors="replace")
573
else:
574
page = page if isinstance(page, unicode) else getUnicode(page)
0 commit comments