From 157b13855d79ea5fb4e7e16972516e085e090a6f 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/trunk@5596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 3 ++- lib/open-uri.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3d917e9d7..6c12c3f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ -Sun Feb 1 03:07:25 2004 Tanaka Akira +Sun Feb 1 05:30:06 2004 Tanaka Akira * lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY. raise an errror on non-http proxy URI. + (OpenURI::Buffer#<<): make a tempfile binmode. Sun Feb 1 00:57:41 2004 Kouhei Sutou 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