From a7bbdf2a89ffc0f2c487ffe3b4053140ba019ddc Mon Sep 17 00:00:00 2001 From: abhigyanghosh30 Date: Tue, 5 Mar 2024 19:07:17 +0530 Subject: [PATCH] fix(TA api): change X_API-KEY to X-API-KEY --- webapp/shop/api/trueability/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/shop/api/trueability/api.py b/webapp/shop/api/trueability/api.py index e16c14c5844..2c10474be54 100644 --- a/webapp/shop/api/trueability/api.py +++ b/webapp/shop/api/trueability/api.py @@ -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, @@ -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()