mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fix for Issue #42
This commit is contained in:
parent
f495cfa139
commit
2a72fcce2b
3 changed files with 5 additions and 5 deletions
|
|
@ -1154,14 +1154,14 @@ def __setHTTPUserAgent():
|
|||
conf.httpHeaders.append(("User-Agent", conf.agent))
|
||||
|
||||
elif not conf.randomAgent:
|
||||
addDefaultUserAgent = True
|
||||
_ = True
|
||||
|
||||
for header, _ in conf.httpHeaders:
|
||||
if header == "User-Agent":
|
||||
addDefaultUserAgent = False
|
||||
_ = False
|
||||
break
|
||||
|
||||
if addDefaultUserAgent:
|
||||
if _:
|
||||
conf.httpHeaders.append(("User-Agent", __defaultHTTPUserAgent()))
|
||||
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue