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:
commit
62d8b31f91
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue