Fix json request bug

This commit is contained in:
benji 2017-01-18 21:56:45 +01:00
parent ae1d324b04
commit 4527972cd8
1 changed files with 2 additions and 1 deletions

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 )