From 704d798615c5190510b036a4db8d32a0f9783df2 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@6606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/open-uri.rb') diff --git a/lib/open-uri.rb b/lib/open-uri.rb index a6186fbb2c..8d0353bbc9 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 v1.2.3