mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
well, this could be important :)
This commit is contained in:
parent
ad53e3f551
commit
ee88ccf0ac
|
@ -1014,10 +1014,16 @@ def __setHTTPExtraHeaders():
|
|||
|
||||
if header and value:
|
||||
conf.httpHeaders.append((header, value))
|
||||
|
||||
elif not conf.httpHeaders or len(conf.httpHeaders) == 1:
|
||||
conf.httpHeaders.append(("Accept-Language", "en-us,en;q=0.5"))
|
||||
conf.httpHeaders.append(("Accept-Charset", "ISO-8859-15,utf-8;q=0.7,*;q=0.7"))
|
||||
|
||||
# Invalidating any proxy mechanism
|
||||
# Reference: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
|
||||
conf.httpHeaders.append(("Cache-Control", "no-cache,no-store"))
|
||||
conf.httpHeaders.append(("Pragma", "no-cache"))
|
||||
|
||||
def __defaultHTTPUserAgent():
|
||||
"""
|
||||
@return: default sqlmap HTTP User-Agent header
|
||||
|
|
Loading…
Reference in New Issue
Block a user