Skip to content

Commit 4663667

Browse files
committed
Do not send empty string as header
1 parent 1a8de70 commit 4663667

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/app-check/src/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export async function exchangeToken(
5353
});
5454
if (heartbeatService) {
5555
const heartbeatsHeader = await heartbeatService.getHeartbeatsHeader();
56-
headers['X-Firebase-Client'] = heartbeatsHeader;
56+
if (heartbeatsHeader) {
57+
headers['X-Firebase-Client'] = heartbeatsHeader;
58+
}
5759
}
5860
const options: RequestInit = {
5961
method: 'POST',

0 commit comments

Comments
 (0)