mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[slicehost] fix password encoding
This commit is contained in:
parent
1761fc53f8
commit
7746761043
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ module Fog
|
|||
def request(params)
|
||||
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}")
|
||||
headers = {
|
||||
'Authorization' => "Basic #{Base64.encode64(@slicehost_password).chomp!}"
|
||||
'Authorization' => "Basic #{Base64.encode64(@slicehost_password).delete("\r\n")}"
|
||||
}
|
||||
case params[:method]
|
||||
when 'DELETE', 'GET', 'HEAD'
|
||||
|
|
Loading…
Add table
Reference in a new issue