kopia lustrzana https://github.com/bugout-dev/moonstream
Updated User-Agent header to include client version
rodzic
1fb40c9651
commit
9192957a7e
|
@ -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]:
|
||||
"""
|
||||
|
|
Ładowanie…
Reference in New Issue