mirror of
https://codeberg.org/reflect/reflect-client-python.git
synced 2025-09-14 01:23:41 +02:00
fix: authorization header name (#5)
This commit is contained in:
parent
340ca52ab5
commit
7ab8e6777d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue