summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-06 13:04:08 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-06 13:04:08 +0000
commitbf5ea589428d3a55174c773398fe49436fbac5d4 (patch)
treee39fa4cf760807cbbe19ca9fb140a0f4c65afbfb
parent5113e8923cd08f3f5e877c2153c0f44597f16402 (diff)
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
-rw-r--r--lib/net/http.rb15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 2b18a8e930c..d9254701719 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