Skip to content

Commit 8c26c67

Browse files
committed
Minor patch for privately reported bug
1 parent c722f8e commit 8c26c67

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.7.0"
23+
VERSION = "1.6.7.1"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ def getPage(**kwargs):
501501
headers[HTTP_HEADER.HOST] = "localhost"
502502

503503
for key, value in list(headers.items()):
504+
if key.upper() == HTTP_HEADER.ACCEPT_ENCODING.upper():
505+
value = re.sub(r"(?i)(,)br(,)?", lambda match: ',' if match.group(1) and match.group(2) else "", value) or "identity"
506+
504507
del headers[key]
505508
if isinstance(value, six.string_types):
506509
for char in (r"\r", r"\n"):

0 commit comments

Comments
 (0)