mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +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 gzip
|
||||
import logging
|
||||
import re
|
||||
import StringIO
|
||||
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 extractRegexResult
|
||||
|
|
Loading…
Reference in New Issue
Block a user