Permalink
Browse files

handle EOFError exception in Request#params

darcs-hash:20080410202632-0c10b-e89c6619864024b884e6f85cda0a4e13f6f176fa.gz
  • Loading branch information...
1 parent 7f34329 commit 67a7507fb07c9d49bf4be4fc6c4fc4578f1673ac @chneukirchen chneukirchen committed Apr 10, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rack/request.rb
View
@@ -123,6 +123,8 @@ def POST
# The union of GET and POST data.
def params
self.GET.update(self.POST)
+ rescue EOFError => e
+ self.GET
end
# shortcut for request.params[key]

0 comments on commit 67a7507

Please sign in to comment.