Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b73d8
)
Fixed formparse typo.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 18 Feb 2023 22:19:11 +0000
(23:19 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 18 Feb 2023 22:19:11 +0000
(23:19 +0100)
wrw/form.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/form.py
b/wrw/form.py
index
902d759
..
8511468
100644
(file)
--- 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=ctpars
e
.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):