mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Dealing with basesting (one baby step closer to Py3 salvation)
This commit is contained in:
parent
915bc1fc99
commit
afe497a954
25 changed files with 112 additions and 98 deletions
|
|
@ -257,12 +257,12 @@ def decodePage(page, contentEncoding, contentType):
|
|||
if not page or (conf.nullConnection and len(page) < 2):
|
||||
return getUnicode(page)
|
||||
|
||||
if isinstance(contentEncoding, basestring) and contentEncoding:
|
||||
if hasattr(contentEncoding, "lower"):
|
||||
contentEncoding = contentEncoding.lower()
|
||||
else:
|
||||
contentEncoding = ""
|
||||
|
||||
if isinstance(contentType, basestring) and contentType:
|
||||
if hasattr(contentType, "lower"):
|
||||
contentType = contentType.lower()
|
||||
else:
|
||||
contentType = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue