mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* missed in last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
97102f6596
commit
239d44a19c
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ module WEBrick
|
|||
proxy_host = proxy.host
|
||||
proxy_port = proxy.port
|
||||
if proxy.userinfo
|
||||
credentials = "Basic " + encode64(proxy.userinfo)
|
||||
credentials = "Basic " + [proxy.userinfo].pack("m*")
|
||||
header['proxy-authorization'] = credentials
|
||||
end
|
||||
end
|
||||
|
@ -170,7 +170,7 @@ module WEBrick
|
|||
if proxy = proxy_uri(req, res)
|
||||
proxy_request_line = "CONNECT #{host}:#{port} HTTP/1.0"
|
||||
if proxy.userinfo
|
||||
credentials = "Basic " + encode64(proxy.userinfo)
|
||||
credentials = "Basic " + [proxy.userinfo].pack("m*")
|
||||
end
|
||||
host, port = proxy.host, proxy.port
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue