diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open-uri.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 22c27c8ccc..e601c5cf5c 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -221,6 +221,7 @@ module OpenURI if StringIO === @io && StringMax < @size require 'tempfile' io = Tempfile.new('open-uri') + io.binmode Meta.init io, @io if Meta === @io io << @io.string @io = io |