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 | 157b13855d79ea5fb4e7e16972516e085e090a6f (patch) | |
| tree | d716f3aca417e489ce8c8b72aba60eca44bf2b0f | |
| parent | 51d802f406268bb0b34115c291f31cdfea6d5164 (diff) | |
| download | ruby-157b13855d79ea5fb4e7e16972516e085e090a6f.tar.gz ruby-157b13855d79ea5fb4e7e16972516e085e090a6f.tar.xz ruby-157b13855d79ea5fb4e7e16972516e085e090a6f.zip | |
* 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
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | lib/open-uri.rb | 1 |
2 files changed, 3 insertions, 1 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. + (OpenURI::Buffer#<<): make a tempfile binmode. Sun Feb 1 00:57:41 2004 Kouhei Sutou <kou@cozmixng.org> 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 |
