mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
192eb734bf
commit
4d1dafdd95
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue