From 74f36b3978c641a5e9be8610413e9038e00ec2f9 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Mon, 8 Apr 2024 16:45:18 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20body=20=E6=8B=86=E5=88=86?= =?UTF-8?q?=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/notify.py b/sample/notify.py index 1bcd35b2..31a53cad 100644 --- a/sample/notify.py +++ b/sample/notify.py @@ -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":