mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/http.rb (proxy_user): retrieve proxy user from http_proxy.
* lib/net/http.rb (proxy_pass): retrieve proxy password from http_proxy. Patch by Rafael dos Santos Silva. [fix GH-763] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce80a49f38
commit
68f7424bde
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Jan 3 16:02:20 2015 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
|
||||
|
||||
* lib/net/http.rb (Net::HTTP.proxy_user): retrieve proxy user from http_proxy.
|
||||
* lib/net/http.rb (Net::HTTP.proxy_pass): retrieve proxy password from http_proxy.
|
||||
Patch by Rafael dos Santos Silva. [fix GH-763]
|
||||
|
||||
Sat Jan 3 11:50:16 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* ext/openssl/ossl.h: avoid to build failure of Windows environment.
|
||||
|
|
|
@ -1059,12 +1059,20 @@ module Net #:nodoc:
|
|||
|
||||
# The proxy username, if one is configured
|
||||
def proxy_user
|
||||
@proxy_user
|
||||
if @proxy_from_env then
|
||||
proxy_uri && 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 && proxy_uri.password
|
||||
else
|
||||
@proxy_pass
|
||||
end
|
||||
end
|
||||
|
||||
alias proxyaddr proxy_address #:nodoc: obsolete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue