diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-31 20:33:33 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-31 20:33:33 +0000 |
| commit | 1fe9dc82c0cf05028d55271cf78ce1c0ac02c4f3 (patch) | |
| tree | b13055c8d7b21ee7a189da61380b95c164fef8b7 | |
| parent | 98907a15ec9ebc95979b9829e6998cb23c1ddd1f (diff) | |
| download | ruby-1fe9dc82c0cf05028d55271cf78ce1c0ac02c4f3.tar.gz ruby-1fe9dc82c0cf05028d55271cf78ce1c0ac02c4f3.tar.xz ruby-1fe9dc82c0cf05028d55271cf78ce1c0ac02c4f3.zip | |
* 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
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | lib/open-uri.rb | 1 |
2 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,8 @@ -Sun Feb 1 03:07:25 2004 Tanaka Akira <akr@m17n.org> +Sun Feb 1 05:30:06 2004 Tanaka Akira <akr@m17n.org> - * lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY. - raise an errror on non-http proxy URI. + * 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. Sat Jan 31 09:20:32 2004 NAKAMURA, Hiroshi <nakahiro@sairon.co.jp> 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 |
