Skip to content

Commit c4d8f78

Browse files
committed
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
1 parent 7808175 commit c4d8f78

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Fri Jul 9 19:26:39 2004 Tanaka Akira <akr@m17n.org>
2+
3+
* lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to
4+
notice https is not supported.
5+
16
Fri Jul 9 14:28:54 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* eval.c (rb_thread_raise): accept third argument as well as

lib/open-uri.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,12 @@ def proxy_open(buf, uri, options) # :nodoc:
578578
include OpenURI::OpenRead
579579
end
580580

581+
class HTTPS
582+
def proxy_open(buf, uri, options) # :nodoc:
583+
raise ArgumentError, "open-uri doesn't support https."
584+
end
585+
end
586+
581587
class FTP
582588
def direct_open(buf, options) # :nodoc:
583589
require 'net/ftp'

0 commit comments

Comments
 (0)