From 4d1dafdd9549baf792f2efa841150075e56798f7 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 31 Jan 2004 20:33:33 +0000 Subject: [PATCH] * lib/open-uri.rb (OpenURI::Buffer#<<): make a tempfile binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/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 3d917e9d70..6c12c3f46d 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 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