fix: use correct auth header for gaiia api
gaiia expects X-Gaiia-Api-Key header, not Authorization: Bearer.
This commit is contained in:
parent
37ea526c61
commit
e4499e8dd0
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ defmodule Towerops.Gaiia.Client do
|
|||
method: :post,
|
||||
url: endpoint,
|
||||
headers: [
|
||||
{"authorization", "Bearer #{api_key}"},
|
||||
{"x-gaiia-api-key", api_key},
|
||||
{"content-type", "application/json"}
|
||||
],
|
||||
json: %{"query" => query_string, "variables" => variables}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue