mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-26 01:53:48 +00:00
revert of some HTTP headers handling
This commit is contained in:
parent
0c8918bf07
commit
fda8752dca
5 changed files with 12 additions and 14 deletions
|
|
@ -21,7 +21,6 @@ from lib.core.common import posixToNtSlashes
|
|||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
from lib.core.enums import PLACE
|
||||
from lib.parse.headers import headersParser
|
||||
from lib.parse.html import htmlParser
|
||||
|
||||
|
|
@ -34,9 +33,9 @@ def forgeHeaders(cookie, ua):
|
|||
headers = {}
|
||||
|
||||
for header, value in conf.httpHeaders:
|
||||
if cookie and header == PLACE.COOKIE:
|
||||
if cookie and header == "Cookie":
|
||||
headers[header] = cookie
|
||||
elif ua and header == PLACE.UA:
|
||||
elif ua and header == "User-Agent":
|
||||
headers[header] = ua
|
||||
else:
|
||||
headers[header] = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue