mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
str() -> unicode()
This commit is contained in:
parent
f24187f251
commit
a3db3c03c1
17 changed files with 31 additions and 31 deletions
|
|
@ -94,7 +94,7 @@ def decodePage(page, encoding):
|
|||
Decode gzip/deflate HTTP response
|
||||
"""
|
||||
|
||||
if str(encoding).lower() in ('gzip', 'x-gzip', 'deflate'):
|
||||
if unicode(encoding).lower() in (u'gzip', u'x-gzip', u'deflate'):
|
||||
if encoding == 'deflate':
|
||||
# http://stackoverflow.com/questions/1089662/python-inflate-and-deflate-implementations
|
||||
data = StringIO.StringIO(zlib.decompress(page, -15))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue