mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Empty requests were tossing an exception. Found while testing Tepee.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@177 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
2c2ba80b55
commit
0c566e721f
1 changed files with 3 additions and 2 deletions
|
@ -61,9 +61,10 @@ module Mongrel
|
|||
controller.body.close
|
||||
end
|
||||
else
|
||||
response.send_status(controller.body.length)
|
||||
body = controller.body.to_s
|
||||
response.send_status(body.length)
|
||||
response.send_header
|
||||
response.write(controller.body.to_s)
|
||||
response.write(body)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue