mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Correct an error with long keys where Base64.encode64 would add "\n" at 60 chars.
This commit is contained in:
parent
be7017e79f
commit
a5810fdbe9
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module Fog
|
||||||
def request(params)
|
def request(params)
|
||||||
params[:headers] ||= {}
|
params[:headers] ||= {}
|
||||||
key = "#{@dnsimple_email}:#{@dnsimple_password}"
|
key = "#{@dnsimple_email}:#{@dnsimple_password}"
|
||||||
params[:headers].merge!({ "Authorization" => "Basic " + Base64.encode64(key).chomp,
|
params[:headers].merge!({ "Authorization" => "Basic " + Base64.strict_encode64(key).chomp,
|
||||||
"Accept" => "application/json",
|
"Accept" => "application/json",
|
||||||
"Content-Type" => "application/json" })
|
"Content-Type" => "application/json" })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue