From 2587e6086c9facdb634102f5d703a91cb05b29e6 Mon Sep 17 00:00:00 2001 From: elliot <3186037+elliot-100@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:28:10 +0100 Subject: [PATCH] Minor refactor --- spond/spond.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spond/spond.py b/spond/spond.py index dea7ae2..8eadae8 100644 --- a/spond/spond.py +++ b/spond/spond.py @@ -20,12 +20,11 @@ def __init__(self, username, password): @property def auth_headers(self): - headers = { + return { "content-type": "application/json", "Authorization": f"Bearer {self.token}", "auth": f"{self.auth}", } - return headers async def login(self): login_url = f"{self.api_url}login"