mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Strip Brotli from Accept-Encoding header
This commit is contained in:
parent
bc252ef010
commit
8258d6d233
3 changed files with 4 additions and 4 deletions
|
|
@ -505,7 +505,7 @@ class Connect(object):
|
|||
|
||||
for key, value in list(headers.items()):
|
||||
if key.upper() == HTTP_HEADER.ACCEPT_ENCODING.upper():
|
||||
value = re.sub(r"(?i)(,)br(,)?", lambda match: ',' if match.group(1) and match.group(2) else "", value) or "identity"
|
||||
value = ','.join(_ for _ in re.split(r"\s*,\s*", value) if _.split(';', 1)[0].lower() != "br") or "identity"
|
||||
|
||||
del headers[key]
|
||||
if isinstance(value, six.string_types):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue