Fixing ancient bug (introduced with #6c80f29) - that removes original value when --prefix used

This commit is contained in:
Miroslav Stampar 2015-10-22 15:14:12 +02:00
parent 90ad914c1e
commit 7c1cff6749

View File

@ -124,11 +124,8 @@ class Agent(object):
if header.upper() == HTTP_HEADER.AUTHORIZATION.upper():
origValue = origValue.split(' ')[-1].split(':')[-1]
if conf.prefix:
value = origValue
if value is None:
if where == PAYLOAD.WHERE.ORIGINAL:
if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix:
value = origValue
elif where == PAYLOAD.WHERE.NEGATIVE:
if conf.invalidLogical: