mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 12:30:36 +03:00
Commit related to the last one
This commit is contained in:
parent
89d8512edc
commit
4d9f8ad0dd
16
lib/request/basic.py
Normal file → Executable file
16
lib/request/basic.py
Normal file → Executable file
|
@ -6,12 +6,24 @@ See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
import gzip
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import StringIO
|
import StringIO
|
||||||
import struct
|
import struct
|
||||||
import zlib
|
|
||||||
|
try:
|
||||||
|
import gzip
|
||||||
|
import zlib
|
||||||
|
except ImportError:
|
||||||
|
import lib.core.settings
|
||||||
|
from lib.core.data import logger
|
||||||
|
|
||||||
|
lib.core.settings.HTTP_ACCEPT_ENCODING_HEADER_VALUE = "identity"
|
||||||
|
|
||||||
|
errMsg = "turning off support for HTTP compressed encodings "
|
||||||
|
errMsg += "because of lack of python compression "
|
||||||
|
errMsg += "modules ('gzip, zlib')"
|
||||||
|
logger.critical(errMsg)
|
||||||
|
|
||||||
from lib.core.common import extractErrorMessage
|
from lib.core.common import extractErrorMessage
|
||||||
from lib.core.common import extractRegexResult
|
from lib.core.common import extractRegexResult
|
||||||
|
|
Loading…
Reference in New Issue
Block a user