mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
fea3684d5e
commit
704d798615
2 changed files with 11 additions and 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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue