Project

General

Profile

Feature #12921 ยป proxy_credential_from_env.patch

wolfer (Sergey Fedosov), 11/10/2016 11:30 AM

View differences:

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
    (1-1/1)