From a9b841572693fb2015198047c5bd12e4c78b756e Mon Sep 17 00:00:00 2001 From: aamine Date: Fri, 13 Jul 2001 21:20:41 +0000 Subject: aamine * lib/net/http.rb: HTTP#proxy? did not worked. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 4 ++-- lib/net/protocol.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/net/http.rb b/lib/net/http.rb index f2b6635fd..f96859be1 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -517,7 +517,7 @@ module Net end def proxy? - type.proxy? + type.proxy_class? end def proxy_address @@ -543,7 +543,7 @@ module Net klass = Class.new( HTTP ) klass.module_eval { include mod - @is_proxy = true + @is_proxy_class = true @proxy_address = p_addr @proxy_port = p_port } diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index edc0f24b6..5835c136b 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -129,7 +129,7 @@ module Net _start args yield self ensure - finish + finish if active? end else _start args -- cgit