Defect #33752 » 10-patches.rb.patch
trunk/config/initializers/10-patches.rb (revision 19981) → trunk/config/initializers/10-patches.rb (working copy) | ||
---|---|---|
213 | 213 |
end |
214 | 214 |
end |
215 | 215 |
end |
216 | ||
217 |
# https://github.com/rack/rack/pull/1703 |
|
218 |
require 'rack' |
|
219 |
module Rack |
|
220 |
class RewindableInput |
|
221 |
def size |
|
222 |
make_rewindable unless @rewindable_io |
|
223 |
@rewindable_io.size |
|
224 |
end unless method_defined?(:size) |
|
225 |
end |
|
226 |
end |