Dolda2000 GitWeb
/
wrw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed form handler bug when no POST data is present.
[wrw.git]
/
wrw
/
form.py
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):
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)
self.cf = cgi.parse(environ = req.env, fp = req.env["wsgi.input"])
else:
self.cf = cgi.parse(environ = req.env)