1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Skip respond_to check so rack.input doesn't have to implement it

This commit is contained in:
Jeremy Kemper 2009-01-14 19:00:07 -08:00
parent 1e02d95d60
commit 78af271069

View file

@ -6,8 +6,8 @@ module Rack
result = parse_multipart_without_rewind(env) result = parse_multipart_without_rewind(env)
begin begin
env['rack.input'].rewind if env['rack.input'].respond_to?(:rewind) env['rack.input'].rewind
rescue Errno::ESPIPE rescue NoMethodError, Errno::ESPIPE
# Handles exceptions raised by input streams that cannot be rewound # Handles exceptions raised by input streams that cannot be rewound
# such as when using plain CGI under Apache # such as when using plain CGI under Apache
end end