Skip to content

Commit adc145c

Browse files
committed
Add x-goog-request-params to request header.
1 parent b58a617 commit adc145c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/firestore/src/remote/rest_connection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export abstract class RestConnection implements Connection {
8585
const url = this.makeUrl(rpcName, path);
8686
logDebug(LOG_TAG, `Sending RPC '${rpcName}' ${streamId}:`, url, req);
8787

88-
const headers = {};
88+
const headers = {
89+
"x-goog-request-params": `project_id=${this.databaseId.projectId}&database_id=${this.databaseId.database}`
90+
};
8991
this.modifyHeadersForRequest(headers, authToken, appCheckToken);
9092

9193
return this.performRPCRequest<Req, Resp>(rpcName, url, headers, req).then(

0 commit comments

Comments
 (0)