From 2c4693357e785a9aa05969b95cb0272e4f201bf0 Mon Sep 17 00:00:00 2001 From: aamine Date: Wed, 15 Dec 2004 18:14:54 +0000 Subject: * lib/net/http.rb (basic_encode): return value of pack('m') may include multiple CR/LFs. Backported from main trunk (rev 1.112). [ruby-dev:25212] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net') diff --git a/lib/net/http.rb b/lib/net/http.rb index 39c58dd521..8ae2889843 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1076,7 +1076,7 @@ module Net # :nodoc: end def basic_encode(account, password) - 'Basic ' + ["#{account}:#{password}"].pack('m').strip + 'Basic ' + ["#{account}:#{password}"].pack('m').delete("\r\n") end private :basic_encode -- cgit v1.2.3