Skip to content

Commit e987dac

Browse files
authored
Add new cloud header (#6041)
* Add new cloud header * Is it case sensitive?
1 parent a7f4a2e commit e987dac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/firestore/src/platform/node/grpc_connection.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,13 @@ function createMetadata(
5959
metadata.set('X-Firebase-GMPID', appId);
6060
}
6161
metadata.set('X-Goog-Api-Client', X_GOOG_API_CLIENT_VALUE);
62-
// This header is used to improve routing and project isolation by the
62+
// These headers are used to improve routing and project isolation by the
6363
// backend.
64+
// TODO(b/199767712): We are keeping 'Google-Cloud-Resource-Prefix' until Emulators can be
65+
// released with cl/428820046. Currently blocked because Emulators are now built with Java
66+
// 11 from Google3.
6467
metadata.set('Google-Cloud-Resource-Prefix', databasePath);
68+
metadata.set('x-goog-request-params', databasePath);
6569
return metadata;
6670
}
6771

0 commit comments

Comments
 (0)