Skip to content

Commit

Permalink
fix(TA api): change X_API-KEY to X-API-KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Mar 5, 2024
1 parent a002b52 commit a7bbdf2
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 a7bbdf2

Please sign in to comment.