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:
parent
de29bfcee8
commit
5a33322361
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ module Fog
|
||||||
|
|
||||||
# Use this to set the Authorization header for login
|
# Use this to set the Authorization header for login
|
||||||
def authorization_header
|
def authorization_header
|
||||||
"Basic #{Base64.strict_encode64("#{@username}:#{@password}")}"
|
"Basic #{Base64.encode64("#{@username}:#{@password}").delete("\n")}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Actually do the request
|
# Actually do the request
|
||||||
|
|
Loading…
Reference in a new issue