diff options
Diffstat (limited to 'lib/net/http/header.rb')
-rw-r--r-- | lib/net/http/header.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb index 5d99e8f070..3a76dcfe4c 100644 --- a/lib/net/http/header.rb +++ b/lib/net/http/header.rb @@ -427,7 +427,7 @@ module Net::HTTPHeader end def basic_encode(account, password) - 'Basic ' + ["#{account}:#{password}"].pack('m').delete("\r\n") + 'Basic ' + ["#{account}:#{password}"].pack('m0') end private :basic_encode |