Skip to content

Commit 1884925

Browse files
authored
Merge 0fe22d5 into 64db192
2 parents 64db192 + 0fe22d5 commit 1884925

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/tall-birds-protect.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/data-connect": patch
3+
---
4+
5+
- Modified user agent to use language instead of platform

packages/data-connect/src/network/fetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function initializeFetch(fetchImpl: typeof fetch): void {
2626
function getGoogApiClientValue(_isUsingGen: boolean): string {
2727
let str = 'gl-js/ fire/' + SDK_VERSION;
2828
if (_isUsingGen) {
29-
str += ' web/gen';
29+
str += ' js/gen';
3030
}
3131
return str;
3232
}

packages/data-connect/test/unit/userAgent.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('User Agent Tests', () => {
5757
'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery',
5858
{
5959
headers: {
60-
['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION + ' web/gen'
60+
['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION + ' js/gen'
6161
}
6262
}
6363
);

0 commit comments

Comments
 (0)