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":