mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-09 09:52:35 +01:00
Minor update (not overriding user given 'Accept-Encoding' header value)
This commit is contained in:
parent
8281fe48e5
commit
3f6c3b40dd
1 changed files with 3 additions and 1 deletions
|
|
@ -332,7 +332,9 @@ class Connect(object):
|
|||
if HTTP_HEADER.ACCEPT not in headers:
|
||||
headers[HTTP_HEADER.ACCEPT] = HTTP_ACCEPT_HEADER_VALUE
|
||||
|
||||
headers[HTTP_HEADER.ACCEPT_ENCODING] = HTTP_ACCEPT_ENCODING_HEADER_VALUE if kb.pageCompress else "identity"
|
||||
if HTTP_HEADER.ACCEPT_ENCODING not in headers:
|
||||
headers[HTTP_HEADER.ACCEPT_ENCODING] = HTTP_ACCEPT_ENCODING_HEADER_VALUE if kb.pageCompress else "identity"
|
||||
|
||||
headers[HTTP_HEADER.HOST] = host or getHostHeader(url)
|
||||
|
||||
if post is not None and HTTP_HEADER.CONTENT_TYPE not in headers:
|
||||
|
|
|
|||
Loading…
Reference in a new issue