Compare commits

...

3 commits

3 changed files with 6 additions and 5 deletions

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

View file

@ -1,2 +1,3 @@
# the "install_requires" array should also be updated when changing this # the "install_requires" array should also be updated when changing this
validators validators
requests

View file

@ -2,12 +2,12 @@ from setuptools import setup, find_packages
setup( setup(
name = "reflect-client", name = "reflect-client",
version = "1.0.1", version = "1.1.2",
description = "Python library for communicating with an API built with Reflect over HTTP or UNIX sockets", description = "Python library for communicating with an API built with Reflect over HTTP or UNIX sockets",
author = "Victor Westerlund", author = "Victor Westerlund",
author_email = "victor.vesterlund@gmail.com", author_email = "victor.vesterlund@gmail.com",
url = "https://github.com/victorwesterlund/reflect-client-python", url = "https://github.com/victorwesterlund/reflect-client-python",
packages = ["reflect_client"], packages = ["reflect_client"],
# The requirement.txt file should also be updated when changing this # The requirement.txt file should also be updated when changing this
install_requires = ["validators"] install_requires = ["validators", "requests"]
) )