1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fix the base encoding issue with Ruby 1.8.7 Compliance

This commit is contained in:
Chirag Jog 2013-02-28 21:40:33 +05:30
parent de29bfcee8
commit 5a33322361

View file

@ -301,7 +301,7 @@ module Fog
# Use this to set the Authorization header for login
def authorization_header
"Basic #{Base64.strict_encode64("#{@username}:#{@password}")}"
"Basic #{Base64.encode64("#{@username}:#{@password}").delete("\n")}"
end
# Actually do the request