mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/xmlrpc/client.rb: Fix possible HTTP header formatting failure by
'Basic' header. Long username caused the base64 String truncation in HTTP header which is not allowed. See #5046. * test/xmlrpc/test_webrick_server.rb: test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0a9b952c6f
commit
2fff0f4f71
3 changed files with 42 additions and 4 deletions
|
@ -493,7 +493,7 @@ module XMLRPC
|
|||
else
|
||||
a = "#@user"
|
||||
a << ":#@password" if @password != nil
|
||||
@auth = ("Basic " + [a].pack("m")).chomp
|
||||
@auth = "Basic " + [a].pack("m0")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue