fix: authorization header name (#5)

This commit is contained in:
Victor Westerlund 2023-06-11 16:30:30 +02:00 committed by GitHub
parent 340ca52ab5
commit 7ab8e6777d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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