1
0
Fork 0
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:
gotoyuzo 2005-01-02 22:48:59 +00:00
parent 97102f6596
commit 239d44a19c

View file

@ -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