From 0e75ec65387d22a59f68b6e5dd04a6ab82b354c6 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 9 Jul 2004 10:33:25 +0000 Subject: lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to notice https is not supported. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/open-uri.rb | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index dbcaab719..dbbf53c9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 9 19:26:39 2004 Tanaka Akira + + * lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to + notice https is not supported. + Fri Jul 9 14:28:54 2004 Nobuyoshi Nakada * eval.c (rb_thread_raise): accept third argument as well as diff --git a/lib/open-uri.rb b/lib/open-uri.rb index a6186fbb2..8d0353bbc 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -578,6 +578,12 @@ module URI include OpenURI::OpenRead end + class HTTPS + def proxy_open(buf, uri, options) # :nodoc: + raise ArgumentError, "open-uri doesn't support https." + end + end + class FTP def direct_open(buf, options) # :nodoc: require 'net/ftp' -- cgit