mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
5113e8923c
commit
bf5ea58942
1 changed files with 2 additions and 13 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue