diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-13 21:20:41 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-13 21:20:41 +0000 |
commit | f7d19237c6037a9efe3eab7344e99704da1df961 (patch) | |
tree | 44e95917d6df36af4b2a073953998bcb961ef843 /lib | |
parent | e3bdb07c422c7cc64b8b7a033f9b5d941b66b556 (diff) |
aamine
* lib/net/http.rb: HTTP#proxy? did not worked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http.rb | 4 | ||||
-rw-r--r-- | lib/net/protocol.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 47c3853e6e..c32a4ecaa7 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -470,7 +470,7 @@ module Net end def proxy? - type.proxy? + type.proxy_class? end def proxy_address @@ -496,7 +496,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 9504356876..b3652decce 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 |