about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/rainbows/event_machine.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb
index 696f5a0..3094284 100644
--- a/lib/rainbows/event_machine.rb
+++ b/lib/rainbows/event_machine.rb
@@ -120,6 +120,7 @@ module Rainbows
 
           if st.file?
             write(response_header(status, headers)) if headers
+            io.close
             @body = stream = stream_file_data(body.to_path)
             stream.callback do
               body.close if body.respond_to?(:close)