mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修正 body 拆分笔误
This commit is contained in:
parent
ef2d20f54c
commit
74f36b3978
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue
Block a user