Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ActionController::DataStreaming::FileBody doesn't respond to #close.

  • Loading branch information...
commit d4433a35215c5e32d5cb91885c4084f849988887 1 parent a6bdae1
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/http/response.rb
View
2  actionpack/lib/action_dispatch/http/response.rb
@@ -212,7 +212,7 @@ def location=(url)
end
def close
- stream.close
+ stream.close if stream.respond_to?(:close)
end
def to_a
Please sign in to comment.
Something went wrong with that request. Please try again.