diff --git a/lib/fog/dnsimple/dns.rb b/lib/fog/dnsimple/dns.rb index e47ea5a2f..6eb00cd2a 100644 --- a/lib/fog/dnsimple/dns.rb +++ b/lib/fog/dnsimple/dns.rb @@ -80,7 +80,7 @@ module Fog def request(params) params[:headers] ||= {} 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", "Content-Type" => "application/json" })