Feature #12921 ยป proxy_credential_from_env.patch
| lib/net/http.rb | ||
|---|---|---|
|
# The proxy username, if one is configured
|
||
|
def proxy_user
|
||
|
@proxy_user
|
||
|
if @proxy_from_env then
|
||
|
proxy_uri&.user
|
||
|
else
|
||
|
@proxy_user
|
||
|
end
|
||
|
end
|
||
|
# The proxy password, if one is configured
|
||
|
def proxy_pass
|
||
|
@proxy_pass
|
||
|
if @proxy_from_env then
|
||
|
proxy_uri&.password
|
||
|
else
|
||
|
@proxy_pass
|
||
|
end
|
||
|
end
|
||
|
alias proxyaddr proxy_address #:nodoc: obsolete
|
||