diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-14 19:00:07 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-16 20:36:59 -0800 |
commit | 78af2710695973bbd747738d175fb3b1f488df6c (patch) | |
tree | 5d7d1e4cd98956dafbd4b7bbca6f52c0a73fd8ee /actionpack/lib/action_controller | |
parent | 1e02d95d601b4e9f921d9eac34f5f5a44ebd33a2 (diff) | |
download | rails-78af2710695973bbd747738d175fb3b1f488df6c.tar.gz rails-78af2710695973bbd747738d175fb3b1f488df6c.tar.bz2 rails-78af2710695973bbd747738d175fb3b1f488df6c.zip |
Skip respond_to check so rack.input doesn't have to implement it
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/rack_ext.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/rack_ext.rb b/actionpack/lib/action_controller/rack_ext.rb index 3b142307e9..3d6f1f9256 100644 --- a/actionpack/lib/action_controller/rack_ext.rb +++ b/actionpack/lib/action_controller/rack_ext.rb @@ -6,8 +6,8 @@ module Rack result = parse_multipart_without_rewind(env) begin - env['rack.input'].rewind if env['rack.input'].respond_to?(:rewind) - rescue Errno::ESPIPE + env['rack.input'].rewind + rescue NoMethodError, Errno::ESPIPE # Handles exceptions raised by input streams that cannot be rewound # such as when using plain CGI under Apache end |