Minor patch (Issue #1327)

This commit is contained in:
Miroslav Stampar 2015-08-12 22:09:31 +02:00
parent e5863d8b89
commit 9ad1d122f4
2 changed files with 4 additions and 1 deletions

View File

@ -1846,7 +1846,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
kb.permissionFlag = False
kb.postHint = None
kb.postSpaceToPlus = False
kb.postUrlEncode = True
kb.postUrlEncode = False
kb.prependFlag = False
kb.processResponseCounter = 0
kb.previousMethod = None

View File

@ -683,10 +683,13 @@ def initTargetEnv():
class _(unicode):
pass
kb.postUrlEncode = False
for key, value in conf.httpHeaders:
if key.upper() == HTTP_HEADER.CONTENT_TYPE.upper():
kb.postUrlEncode = "urlencoded" in value
break
if kb.postUrlEncode:
original = conf.data
conf.data = _(urldecode(conf.data))