[slicehost] fix password encoding

This commit is contained in:
geemus (Wesley Beary) 2010-03-27 18:31:46 -07:00
parent 1761fc53f8
commit 7746761043
2 changed files with 2 additions and 2 deletions

View File

@ -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'