diff options
-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 22c27c8ccc..e601c5cf5c 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 |