Skip to content

Commit

Permalink
Skip respond_to check so rack.input doesn't have to implement it
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jan 17, 2009
1 parent 1e02d95 commit 78af271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/rack_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def parse_multipart_with_rewind(env)
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
Expand Down

0 comments on commit 78af271

Please sign in to comment.