Fix json request bug

This commit is contained in:
benji 2017-01-18 21:56:45 +01:00
parent ae1d324b04
commit 4527972cd8

View file

@ -11,7 +11,8 @@ TabApiJob = Struct.new(:order_id) do
}
}
headers = {
"Authorization" => "Token token=#{Rails.application.secrets.tab_api_key}"
"Authorization" => "Token token=#{Rails.application.secrets.tab_api_key}",
'Accept' => 'application/json'
}
result = HTTParty.post(File.join(Rails.application.config.api_url, "transactions"), body: body, headers: headers )