summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-31 20:33:33 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-31 20:33:33 +0000
commit4d1dafdd9549baf792f2efa841150075e56798f7 (patch)
treed716f3aca417e489ce8c8b72aba60eca44bf2b0f
parent192eb734bf945d4328d82c50df62fc8441a55454 (diff)
* 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
-rw-r--r--ChangeLog3
-rw-r--r--lib/open-uri.rb1
2 files changed, 3 insertions, 1 deletions
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 <[email protected]>
+Sun Feb 1 05:30:06 2004 Tanaka Akira <[email protected]>
* 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 <[email protected]>
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