1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 16:53:27 +00:00

Prevent sending null values

This commit is contained in:
Bernd Schoolmann
2025-11-25 11:22:05 +01:00
parent 4334d45e7e
commit 44b552ad9b

View File

@@ -1325,7 +1325,11 @@ export class ApiService implements ApiServiceAbstraction {
"Bitwarden-Client-Version",
await this.platformUtilsService.getApplicationVersionNumber(),
);
request.headers.set("Bitwarden-Package-Type", await this.platformUtilsService.packageType());
const packageType = await this.platformUtilsService.packageType();
if (packageType != null) {
request.headers.set("Bitwarden-Package-Type", packageType);
}
return this.nativeFetch(request);
}