From 515be4ee0ba406e77fc5ba83b8febd2c0293b644 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 14 Feb 2013 19:58:10 +0100 Subject: [PATCH] Minor just in case commit related to the last one --- lib/core/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 23e3a349e..15f91831b 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -97,7 +97,7 @@ class Agent(object): if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML): origValue = origValue.split('>')[-1] elif kb.postHint == POST_HINT.JSON: - origValue = extractRegexResult(r"(?s)(?P\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P[^"]+\Z)', origValue) + origValue = extractRegexResult(r"(?s):\s*(?P\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P[^"]+\Z)', origValue) else: origValue = extractRegexResult(r"(?s)(?P[^\s<>{}();'\"]+\Z)", origValue) elif place == PLACE.CUSTOM_HEADER: