Fix json request bug
This commit is contained in:
parent
ae1d324b04
commit
4527972cd8
1 changed files with 2 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue