Skip to content

Commit

Permalink
Merge pull request canonical#13646 from abhigyanghosh30/change_trueab…
Browse files Browse the repository at this point in the history
…ility_url

Fix(TA API): Change X-API_KEY to X-API-KEY
  • Loading branch information
jpmartinspt authored Mar 5, 2024
2 parents 814b509 + a7bbdf2 commit 5f84beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/shop/api/trueability/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def make_request(
allow_redirects: bool = True,
):
uri = f"{self.base_url}{path}"
headers["X-API_KEY"] = f"{self.api_key}"
headers["X-API-KEY"] = f"{self.api_key}"

response = self.session.request(
method,
Expand Down Expand Up @@ -232,7 +232,7 @@ def get_filtered_webhook_responses(
f"?ability_screen_id={ability_screen_id}"
f"&page={page}"
)
headers = {"X-API_KEY": self.api_key}
headers = {"X-API-KEY": self.api_key}
response = self.session.request(
method="GET", url=uri, headers=headers
).json()
Expand Down

0 comments on commit 5f84beb

Please sign in to comment.