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

Skip to content

Commit 7c1cff6

Browse files
committed
Fixing ancient bug (introduced with #6c80f29) - that removes original value when --prefix used
1 parent 90ad914 commit 7c1cff6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/core/agent.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,8 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
124124
if header.upper() == HTTP_HEADER.AUTHORIZATION.upper():
125125
origValue = origValue.split(' ')[-1].split(':')[-1]
126126

127-
if conf.prefix:
128-
value = origValue
129-
130127
if value is None:
131-
if where == PAYLOAD.WHERE.ORIGINAL:
128+
if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix:
132129
value = origValue
133130
elif where == PAYLOAD.WHERE.NEGATIVE:
134131
if conf.invalidLogical:

0 commit comments

Comments
 (0)