about summary refs log tree commit homepage
path: root/lib/rainbows/dev_fd_response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/dev_fd_response.rb')
-rw-r--r--lib/rainbows/dev_fd_response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/dev_fd_response.rb b/lib/rainbows/dev_fd_response.rb
index b2367d7..ba1fdaa 100644
--- a/lib/rainbows/dev_fd_response.rb
+++ b/lib/rainbows/dev_fd_response.rb
@@ -31,7 +31,7 @@ class Rainbows::DevFdResponse < Struct.new(:app)
     return response if STATUS_WITH_NO_ENTITY_BODY.include?(status)
 
     io = body.to_io if body.respond_to?(:to_io)
-    io ||= File.open(body.to_path, 'rb') if body.respond_to?(:to_path)
+    io ||= File.open(body.to_path) if body.respond_to?(:to_path)
     return response if io.nil?
 
     headers = HeaderHash.new(headers)