We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4be3457 commit a747eeaCopy full SHA for a747eea
autorequests/classes/body.py
@@ -1,5 +1,5 @@
1
import json
2
-
+import urllib.parse
3
4
class Body:
5
@@ -86,7 +86,9 @@ def __parse_json(self):
86
def __parse_urlencoded(self):
87
# urllib.parse.parse_qs doesn't work here btw
88
# if a key doesn't have a value then it gets excluded with parse_qs
89
- for param in self.body.split("&"):
+ # not sure if unquote_plus() would be better
90
+ body = urllib.parse.unquote(self.body)
91
+ for param in body.split("&"):
92
key, value = param.split("=", maxsplit=1)
93
self.__data[key] = value
94
0 commit comments