diff options
| -rw-r--r-- | ChangeLog | 1 | ||||
| -rw-r--r-- | lib/open-uri.rb | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -14,6 +14,7 @@ Sun Feb 8 21:39:06 2009 Akinori MUSHA <knu@iDaemons.org> (:redirect) new option to disable redirection. (r13788) (OpenURI::HTTPRedirect): new exception class for redirection. (r13788) + (OpenURI::Buffer): use Meta ===. [ruby-core:14295] (r14609) Mon Feb 9 01:21:16 2009 Tanaka Akira <akr@fsij.org> diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 70b4e8826a..fa93ff140d 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -364,14 +364,14 @@ module OpenURI require 'tempfile' io = Tempfile.new('open-uri') io.binmode - Meta.init io, @io if @io.respond_to? :meta + Meta.init io, @io if Meta === @io io << @io.string @io = io end end def io - Meta.init @io unless @io.respond_to? :meta + Meta.init @io unless Meta === @io @io end end |
