From b8edcc30819d89812018da7862cccc4c0e7739ad Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 31 Jan 2004 20:33:33 +0000 Subject: * lib/open-uri.rb (OpenURI::Buffer#<<): make a tempfile binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.3