mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
just removing unneded and possible future source of confusion
This commit is contained in:
@@ -94,7 +94,7 @@ def decodePage(page, encoding):
|
|||||||
Decode gzip/deflate HTTP response
|
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':
|
if encoding == 'deflate':
|
||||||
# http://stackoverflow.com/questions/1089662/python-inflate-and-deflate-implementations
|
# http://stackoverflow.com/questions/1089662/python-inflate-and-deflate-implementations
|
||||||
data = StringIO.StringIO(zlib.decompress(page, -15))
|
data = StringIO.StringIO(zlib.decompress(page, -15))
|
||||||
|
|||||||
Reference in New Issue
Block a user