Fix nested post params

- use urllib.parse.unquote on form data name and value
pull/22/head
xyzkab 2019-12-28 03:00:48 +07:00
parent b7b0f76afe
commit 453e1b2a2c
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ class Requester(object):
for arg in data.split("&"):
regex = re.compile('(.*)=(.*)')
for name,value in regex.findall(arg):
name = urllib.parse.unquote(name)
value = urllib.parse.unquote(value)
self.data[name] = value