From ac06dde2ad42c0f1504ddc9929017a8acc01fb36 Mon Sep 17 00:00:00 2001 From: Alex Nork <48630278+alex-nork@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:57:00 -0400 Subject: [PATCH] Update api_endpoint.py --- chirps/asset/providers/api_endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chirps/asset/providers/api_endpoint.py b/chirps/asset/providers/api_endpoint.py index 4f95108..ebc71e0 100644 --- a/chirps/asset/providers/api_endpoint.py +++ b/chirps/asset/providers/api_endpoint.py @@ -47,7 +47,7 @@ def decrypted_api_key(self): def _send_request(self, message: str) -> requests.Response: # Convert headers JSON string into a dictionary - headers_dict = json.loads(self.headers) if self.headers else {} + headers_dict = self.headers or {} # Build the request headers headers = headers_dict.copy()