From 1a5838e959a891036a99bc5855cdf8b5a19afa15 Mon Sep 17 00:00:00 2001 From: daniilnaumov Date: Tue, 27 Aug 2024 12:49:37 +0200 Subject: [PATCH] add custom agent --- traveltimepy/sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traveltimepy/sdk.py b/traveltimepy/sdk.py index 0947e6d..e6d8c9e 100644 --- a/traveltimepy/sdk.py +++ b/traveltimepy/sdk.py @@ -719,7 +719,7 @@ def _headers(self, accept_type: AcceptType) -> Dict[str, str]: return { "X-Application-Id": self._app_id, "X-Api-Key": self._api_key, - "User-Agent": f"Travel Time Python SDK {__version__}", + "User-Agent": self._user_agent, "Content-Type": "application/json", "Accept": accept_type.value, }