mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-28 10:10:34 +03:00
just removing unneded and possible future source of confusion
This commit is contained in:
parent
02228f9d35
commit
ac6ce478a0
|
@ -94,7 +94,7 @@ def decodePage(page, encoding):
|
|||
Decode gzip/deflate HTTP response
|
||||
"""
|
||||
|
||||
if unicode(encoding).lower() in (u'gzip', u'x-gzip', u'deflate'):
|
||||
if unicode(encoding).lower() in ('gzip', 'x-gzip', 'deflate'):
|
||||
if encoding == 'deflate':
|
||||
# http://stackoverflow.com/questions/1089662/python-inflate-and-deflate-implementations
|
||||
data = StringIO.StringIO(zlib.decompress(page, -15))
|
||||
|
|
Loading…
Reference in New Issue
Block a user