mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Bug fix for ultra-slow processing of binary data
This commit is contained in:
parent
ebc964267f
commit
6caccc3d93
|
@ -568,6 +568,10 @@ class Connect(object):
|
|||
raise SqlmapConnectionException(warnMsg)
|
||||
|
||||
finally:
|
||||
if HTTP_HEADER.CONTENT_TYPE in (responseHeaders or {}) and responseHeaders[HTTP_HEADER.CONTENT_TYPE] in ("application/octet-stream",):
|
||||
page = unicode(page, errors="replace")
|
||||
else:
|
||||
page = page if isinstance(page, unicode) else getUnicode(page)
|
||||
page = page if isinstance(page, unicode) else getUnicode(page)
|
||||
socket.setdefaulttimeout(conf.timeout)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user