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 /lib | |
| 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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/open-uri.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
