Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
168724a
)
Fixed form handler bug when no POST data is present.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 31 Oct 2011 08:47:09 +0000
(09:47 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 31 Oct 2011 08:47:09 +0000
(09:47 +0100)
wrw/form.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/form.py
b/wrw/form.py
index
049da10
..
af599e6
100644
(file)
--- a/
wrw/form.py
+++ b/
wrw/form.py
@@
-4,7
+4,7
@@
__all__ = ["formdata"]
class formwrap(object):
def __init__(self, req):
- if req.ihead
["Content-Type"]
== "application/x-www-form-urlencoded":
+ if req.ihead
.get("Content-Type")
== "application/x-www-form-urlencoded":
self.cf = cgi.parse(environ = req.env, fp = req.env["wsgi.input"])
else:
self.cf = cgi.parse(environ = req.env)