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
|
@ -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.
|
* lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY.
|
||||||
raise an errror on non-http proxy URI.
|
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>
|
Sun Feb 1 00:57:41 2004 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
|
|
|
@ -221,6 +221,7 @@ module OpenURI
|
||||||
if StringIO === @io && StringMax < @size
|
if StringIO === @io && StringMax < @size
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
io = Tempfile.new('open-uri')
|
io = Tempfile.new('open-uri')
|
||||||
|
io.binmode
|
||||||
Meta.init io, @io if Meta === @io
|
Meta.init io, @io if Meta === @io
|
||||||
io << @io.string
|
io << @io.string
|
||||||
@io = io
|
@io = io
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue