summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-09 10:33:25 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-09 10:33:25 +0000
commit0e75ec65387d22a59f68b6e5dd04a6ab82b354c6 (patch)
tree4abff6627c141992ba9dd317d68fbe37ae5665c6 /lib
parentd1e2862df8afd6a2538848bdd18bfcc3e1a06f09 (diff)
downloadruby-0e75ec65387d22a59f68b6e5dd04a6ab82b354c6.tar.gz
ruby-0e75ec65387d22a59f68b6e5dd04a6ab82b354c6.tar.xz
ruby-0e75ec65387d22a59f68b6e5dd04a6ab82b354c6.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb6
1 files changed, 6 insertions, 0 deletions
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'