提交 99c86b3e 编写于 作者: M Mislav Marohnić

fix fetching proxy user/password

上级 45631645
......@@ -960,7 +960,11 @@ help
http_args = [url.host, port]
if proxy = proxy_url(use_ssl)
http_args.concat proxy.select(:host, :port, :user, :password)
http_args.concat proxy.select(:host, :port)
if proxy.userinfo
require 'cgi'
http_args.concat proxy.userinfo.split(':', 2).map {|a| CGI.unescape a }
end
end
http = Net::HTTP.new(*http_args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册