Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/vaultwarden/clients/bitwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def __init__(
self._http_client = Client(
base_url=f"{self.url}/",
event_hooks={"response": [log_raise_for_status]},
headers={
"Bitwarden-Client-Version": "2024.1.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version value should be dynamic ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, it shouldn't matter, really. afaict, there is no code that returns different results based on the version. this is the version that the official bitwarden test suite uses, so i chose that one.

},
timeout=timeout,
)
self._connect_token: ConnectToken | None = None
Expand Down