From 9192957a7e1ff6c876d6c257dc9d932be58ff0fb Mon Sep 17 00:00:00 2001 From: Neeraj Kashyap Date: Mon, 20 Sep 2021 14:46:39 -0700 Subject: [PATCH] Updated User-Agent header to include client version --- clients/python/moonstream/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/python/moonstream/client.py b/clients/python/moonstream/client.py index 7fed44ac..8910b049 100644 --- a/clients/python/moonstream/client.py +++ b/clients/python/moonstream/client.py @@ -77,7 +77,9 @@ class Moonstream: self.api = APISpec(url=url, endpoints=endpoints) self.timeout = timeout self._session = requests.Session() - self._session.headers.update({"User-Agent": "Moonstream Python client"}) + self._session.headers.update( + {"User-Agent": f"Moonstream Python client (version {CLIENT_VERSION})"} + ) def ping(self) -> Dict[str, Any]: """