diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-09 10:33:25 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-09 10:33:25 +0000 |
commit | c4d8f782a459776a98bc1376b27afc991b103a1a (patch) | |
tree | b2b6197c9901a5b6aeef77114798636a1044b9d8 | |
parent | 7808175f0fb239e106d08206cc62d2cfe4b27c34 (diff) |
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/branches/ruby_1_8@6606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/open-uri.rb | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Jul 9 19:26:39 2004 Tanaka Akira <akr@m17n.org> + + * 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 <nobu@ruby-lang.org> * eval.c (rb_thread_raise): accept third argument as well as 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' |