Skip to content

Commit

Permalink
bugfix: An empty POST body caused an error the first time Request.POS…
Browse files Browse the repository at this point in the history
…T is accessed. See #67
  • Loading branch information
defnull committed Apr 26, 2010
1 parent ad33a46 commit 43062fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Expand Up @@ -389,7 +389,7 @@ def POST(self):
data = cgi.FieldStorage(fp=self._environ['wsgi.input'],
environ=self._environ, keep_blank_values=True)
self._POST = {}
for item in data.list:
for item in data.list or []:
name = item.name
if not item.filename:
item = item.value
Expand Down

0 comments on commit 43062fb

Please sign in to comment.