1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
aamine 2001-02-06 13:04:08 +00:00
parent 5113e8923c
commit bf5ea58942

View file

@ -284,9 +284,10 @@ module Net
class << self class << self
def create_proxy_class( p_addr, p_port ) def create_proxy_class( p_addr, p_port )
mod = self
klass = Class.new( HTTP ) klass = Class.new( HTTP )
klass.module_eval { klass.module_eval {
include HTTPProxy include mod
@proxy_address = p_addr @proxy_address = p_addr
@proxy_port = p_port @proxy_port = p_port
} }
@ -1035,18 +1036,6 @@ module Net
end end
class Dummy
def initialize( *args )
end
def critical?
false
end
end
end # module Net::NetPrivate end # module Net::NetPrivate
end # module Net end # module Net