lib/myfinance/request.rb in myfinance-0.2.0 vs lib/myfinance/request.rb in myfinance-0.3.0
- old
+ new
@@ -33,11 +33,12 @@
{
"Accept" => "application/json",
"Content-Type" => "application/json",
"User-Agent" => args[:user_agent],
- "Authorization" => "Basic #{authorization_hash}"
- }.merge(headers)
+ "Authorization" => "Basic #{authorization_hash}",
+ "ACCOUNT_ID" => args[:account_id]
+ }.merge(headers).delete_if { |_,v| v.nil? || v.to_s.empty? }
end
def body
body = args[:body]
body = MultiJson.dump(body) if body.is_a?(Hash)