summary refs log tree commit
diff options
context:
space:
mode:
authorVais Salikhov <vsalikhov@gmail.com>2014-11-04 19:18:46 +0700
committerVais Salikhov <vsalikhov@gmail.com>2014-11-04 19:18:46 +0700
commit9a4c8227429c66cf89e526159de6204a0b6a14bc (patch)
tree079c198b194fdd9d0167cbbf8ec9ab06ff399482
parenta0b8fe36d456b2dd339d65836a753ff4260dd8f6 (diff)
downloadrack-9a4c8227429c66cf89e526159de6204a0b6a14bc.tar.gz
Revert "Ensure body is closed inside the proc just as it would be outside the proc"
This reverts commit a0b8fe36d456b2dd339d65836a753ff4260dd8f6.
-rw-r--r--lib/rack/handler/webrick.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rack/handler/webrick.rb b/lib/rack/handler/webrick.rb
index b96d261e..e96dce9a 100644
--- a/lib/rack/handler/webrick.rb
+++ b/lib/rack/handler/webrick.rb
@@ -112,11 +112,7 @@ module Rack
               body.each { |part| res.body << part }
             else
               res.body = proc do |socket|
-                begin
-                  body.each { |part| socket << part }
-                ensure
-                  body.close  if body.respond_to? :close
-                end
+                body.each { |part| socket << part }
               end
             end
           end