fix: authorization header name

This commit is contained in:
Victor Westerlund 2023-06-11 16:29:00 +02:00
parent 340ca52ab5
commit ff40bfb125

View file

@ -66,9 +66,9 @@ class Client:
"Content-Type": "application/json" "Content-Type": "application/json"
} }
# Append Authentication header if API key is provided # Append Authorization header if API key is provided
if (self._key): if (self._key):
headers["Authentication"] = f"Bearer {self._key}" headers["Authorization"] = f"Bearer {self._key}"
return headers return headers