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

Skip to content

Commit 9ad1d12

Browse files
committed
Minor patch (Issue #1327)
1 parent e5863d8 commit 9ad1d12

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
18461846
kb.permissionFlag = False
18471847
kb.postHint = None
18481848
kb.postSpaceToPlus = False
1849-
kb.postUrlEncode = True
1849+
kb.postUrlEncode = False
18501850
kb.prependFlag = False
18511851
kb.processResponseCounter = 0
18521852
kb.previousMethod = None

lib/core/target.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,13 @@ def initTargetEnv():
683683
class _(unicode):
684684
pass
685685

686+
kb.postUrlEncode = False
687+
686688
for key, value in conf.httpHeaders:
687689
if key.upper() == HTTP_HEADER.CONTENT_TYPE.upper():
688690
kb.postUrlEncode = "urlencoded" in value
689691
break
692+
690693
if kb.postUrlEncode:
691694
original = conf.data
692695
conf.data = _(urldecode(conf.data))

0 commit comments

Comments
 (0)