From 3a774098a13421bc63c995c8dbfc9c716397d324 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 3 Apr 2014 05:35:05 +0200 Subject: [PATCH] Decode binary form input. --- wrw/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/form.py b/wrw/form.py index 7184635..adde1d3 100644 --- a/wrw/form.py +++ b/wrw/form.py @@ -10,7 +10,7 @@ def formparse(req): if req.input.limit > 2 ** 20: raise ValueError("x-www-form-urlencoded data is absurdly long") rbody = req.input.read() - buf.update(urllib.parse.parse_qsl(rbody)) + buf.update(urllib.parse.parse_qsl(rbody.decode("latin1"))) return buf class badmultipart(Exception): -- 2.11.0