1
0
Fork 0
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:
why 2006-05-14 06:56:50 +00:00
parent 2c2ba80b55
commit 0c566e721f

View file

@ -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