From bf5ea589428d3a55174c773398fe49436fbac5d4 Mon Sep 17 00:00:00 2001 From: aamine Date: Tue, 6 Feb 2001 13:04:08 +0000 Subject: aamine * lib/net/http.rb: Proxy did not work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'lib') diff --git a/lib/net/http.rb b/lib/net/http.rb index 2b18a8e930..d925470171 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -284,9 +284,10 @@ module Net class << self def create_proxy_class( p_addr, p_port ) + mod = self klass = Class.new( HTTP ) klass.module_eval { - include HTTPProxy + include mod @proxy_address = p_addr @proxy_port = p_port } @@ -1035,18 +1036,6 @@ module Net end - class Dummy - - def initialize( *args ) - end - - def critical? - false - end - - end - - end # module Net::NetPrivate end # module Net -- cgit v1.2.3