diff --git a/CHANGELOG.md b/CHANGELOG.md index 25df26a..d43192f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to the `python-domino` library will be documented in this fi * Updated runs_stdout output * Fixed issues with import from domino_data * Updated nbconvert dependency version to 6.3.0 +* updated request user-agent to python-domino/{version} ## 1.0.8 diff --git a/domino/authentication.py b/domino/authentication.py index f2bd9a1..ca71f39 100644 --- a/domino/authentication.py +++ b/domino/authentication.py @@ -2,6 +2,7 @@ from requests.auth import AuthBase, HTTPBasicAuth +from ._version import __version__ from .constants import DOMINO_TOKEN_FILE_KEY_NAME, DOMINO_USER_API_KEY_KEY_NAME @@ -28,6 +29,7 @@ def __call__(self, r): auth_token = ( self._from_token_file() if self.domino_token_file else self.auth_token ) + r.headers["User-Agent"] = f"python-domino/{__version__}" r.headers["Authorization"] = "Bearer " + auth_token return r