From 1fe9dc82c0cf05028d55271cf78ce1c0ac02c4f3 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: http://svn.ruby-lang.org/repos/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 22c27c8cc..e601c5cf5 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