diff --git a/lib/fog/vcloud/compute.rb b/lib/fog/vcloud/compute.rb index d65b24a87..4cc393460 100644 --- a/lib/fog/vcloud/compute.rb +++ b/lib/fog/vcloud/compute.rb @@ -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