From: Fredrik Tolf Date: Wed, 7 May 2014 16:13:40 +0000 (+0200) Subject: Merge branch 'master' into python2 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=0d4c1b8b8da9e20c4bc9fb41ff1136283821b98e;p=wrw.git Merge branch 'master' into python2 --- 0d4c1b8b8da9e20c4bc9fb41ff1136283821b98e diff --cc wrw/form.py index de40092,53fc82d..da13a4a --- a/wrw/form.py +++ b/wrw/form.py @@@ -5,12 -5,12 +5,12 @@@ __all__ = ["formdata" def formparse(req): buf = {} - buf.update(urllib.parse.parse_qsl(req.query)) + buf.update(urlparse.parse_qsl(req.query)) if req.ihead.get("Content-Type") == "application/x-www-form-urlencoded": - rbody = req.input(2 ** 20) + rbody = req.input.read(2 ** 20) if len(rbody) >= 2 ** 20: raise ValueError("x-www-form-urlencoded data is absurdly long") - buf.update(urllib.parse.parse_qsl(rbody.decode("latin1"))) + buf.update(urlparse.parse_qsl(rbody)) return buf class badmultipart(Exception):