mirror of
https://github.com/github/rails.git
synced 2026-01-24 13:58:12 -05:00
Skip respond_to check so rack.input doesn't have to implement it
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user