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 | 2334c17543e953f1e49d34556b711db9c4145284 (patch) | |
| tree | b2b6197c9901a5b6aeef77114798636a1044b9d8 /lib | |
| parent | 62acd062a06ddf9debf053dccd0c9eb075ff8871 (diff) | |
| download | ruby-2334c17543e953f1e49d34556b711db9c4145284.tar.gz ruby-2334c17543e953f1e49d34556b711db9c4145284.tar.xz ruby-2334c17543e953f1e49d34556b711db9c4145284.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/branches/ruby_1_8@6606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/open-uri.rb | 6 |
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' |
