From 7c1cff6749948efa082b3abd841f94b67945da39 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 22 Oct 2015 15:14:12 +0200 Subject: [PATCH] Fixing ancient bug (introduced with #6c80f29) - that removes original value when --prefix used --- lib/core/agent.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 67222ccc2..efedf2180 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -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: