修正 body 拆分笔误

This commit is contained in:
Cp0204 2024-04-08 16:45:18 +00:00
parent ef2d20f54c
commit 74f36b3978

View File

@ -771,10 +771,10 @@ def parse_body(body, content_type):
if not body or content_type == "text/plain":
return body
parsed = parse_string(input_string)
parsed = parse_string(body)
if content_type == "application/x-www-form-urlencoded":
data = urlencode(parsed, doseq=True)
data = urllib.parse.urlencode(parsed, doseq=True)
return data
if content_type == "application/json":