From: Fredrik Tolf Date: Thu, 3 Apr 2014 03:35:05 +0000 (+0200) Subject: Decode binary form input. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=3a774098a13421bc63c995c8dbfc9c716397d324;p=wrw.git Decode binary form input. --- 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):