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

Merge pull request #1608 from chirag-jog/vcloud_base_encoder64_fix

Use strict_encode64
This commit is contained in:
Wesley Beary 2013-03-08 08:10:21 -08:00
commit 62d8b31f91

View file

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