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:
parent
1e02d95d60
commit
78af271069
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue