From dff902d7223a92f2e7e33e5561cca7a6d39c7dbb Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 18 Feb 2023 23:19:11 +0100 Subject: [PATCH] Fixed formparse typo. --- wrw/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/form.py b/wrw/form.py index 902d759..8511468 100644 --- a/wrw/form.py +++ b/wrw/form.py @@ -14,7 +14,7 @@ def formparse(req): return exc if len(rbody) >= 2 ** 20: return ValueError("x-www-form-urlencoded data is absurdly long") - buf.update(urllib.parse.parse_qsl(rbody.decode("latin1"), encoding=ctparse.get("charset", "utf-8"), keep_blank_values=True)) + buf.update(urllib.parse.parse_qsl(rbody.decode("latin1"), encoding=ctpars.get("charset", "utf-8"), keep_blank_values=True)) return buf class badmultipart(IOError): -- 2.11.0