We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39c3fd commit ceac2caCopy full SHA for ceac2ca
src/fastapi_cloud_cli/utils/api.py
@@ -1,5 +1,6 @@
1
import httpx
2
3
+from fastapi_cloud_cli import __version__
4
from fastapi_cloud_cli.config import settings
5
6
from .auth import get_auth_token
@@ -10,5 +11,9 @@ def __init__(self) -> None:
10
11
token = get_auth_token()
12
13
super().__init__(
- base_url=settings.base_api_url, headers={"Authorization": f"Bearer {token}"}
14
+ base_url=settings.base_api_url,
15
+ headers={
16
+ "Authorization": f"Bearer {token}",
17
+ "User-Agent": f"fastapi-cloud-cli/{__version__}",
18
+ },
19
)
0 commit comments