Skip to content

Commit

Permalink
Add new cloud header (#6041)
Browse files Browse the repository at this point in the history
* Add new cloud header

* Is it case sensitive?
  • Loading branch information
wu-hui authored Mar 16, 2022
1 parent a7f4a2e commit e987dac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/firestore/src/platform/node/grpc_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ function createMetadata(
metadata.set('X-Firebase-GMPID', appId);
}
metadata.set('X-Goog-Api-Client', X_GOOG_API_CLIENT_VALUE);
// This header is used to improve routing and project isolation by the
// These headers are used to improve routing and project isolation by the
// backend.
// TODO(b/199767712): We are keeping 'Google-Cloud-Resource-Prefix' until Emulators can be
// released with cl/428820046. Currently blocked because Emulators are now built with Java
// 11 from Google3.
metadata.set('Google-Cloud-Resource-Prefix', databasePath);
metadata.set('x-goog-request-params', databasePath);
return metadata;
}

Expand Down

0 comments on commit e987dac

Please sign in to comment.