Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88b992a

Browse files
committed
Fixing a bug noticed during the yesterday's AppSecEU presentation (--headers='user-agent:foobar*' was not working properly)
1 parent 3bbe02a commit 88b992a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ def getPage(**kwargs):
338338

339339
if auxHeaders:
340340
for key, item in auxHeaders.items():
341+
for _ in headers.keys():
342+
if _.upper() == key.upper():
343+
del headers[_]
341344
headers[key] = item
342345

343346
for key, item in headers.items():

0 commit comments

Comments
 (0)