mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
More verbose comments
This commit is contained in:
parent
8576817a2b
commit
fb9f669544
|
@ -167,19 +167,24 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
|
|||
elif "?" in line and "=" in line and ": " not in line:
|
||||
params = True
|
||||
|
||||
# Cookie and Host headers
|
||||
# Headers
|
||||
elif ": " in line:
|
||||
key, value = line.split(": ", 1)
|
||||
|
||||
# Cookie and Host headers
|
||||
if key.lower() == "cookie":
|
||||
cookie = value
|
||||
elif key.lower() == "host":
|
||||
host = value
|
||||
|
||||
# Avoid to add a static content length header to
|
||||
# conf.httpHeaders and consider the following lines as
|
||||
# POSTed data
|
||||
if key == "Content-Length":
|
||||
data = ""
|
||||
params = True
|
||||
|
||||
# Avoid proxy and connection type related headers
|
||||
elif key not in ( "Proxy-Connection", "Connection" ):
|
||||
conf.httpHeaders.append((str(key), str(value)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user