This commit is contained in:
mdipierro
2020-03-21 12:50:11 -07:00
parent 6c4649d992
commit 4882890a3c
+1 -2
View File
@@ -242,8 +242,7 @@ class Request(Storage):
# parse POST variables on POST, PUT, BOTH only in post_vars
if body and not is_json and env.request_method in ('POST', 'PUT', 'DELETE', 'BOTH'):
query_string = env.pop('QUERY_STRING', None)
decoded_body = body if global_settings.is_py2 else body.decode()
dpost = cgi.FieldStorage(fp=decoded_body, environ=env, keep_blank_values=1)
dpost = cgi.FieldStorage(fp=body, environ=env, keep_blank_values=1)
try:
post_vars.update(dpost)
except: