We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1261d83 commit 6a8be13Copy full SHA for 6a8be13
.changeset/stale-pianos-buy.md
@@ -0,0 +1,5 @@
1
+---
2
+'@firebase/database': patch
3
4
+
5
+Fix setting of headers on Node.
packages/database/src/realtime/WebSocketConnection.ts
@@ -166,7 +166,7 @@ export class WebSocketConnection implements Transport {
166
if (isNodeSdk()) {
167
const device = this.nodeAdmin ? 'AdminNode' : 'Node';
168
// UA Format: Firebase/<wire_protocol>/<sdk_version>/<platform>/<device>
169
- const options: { [k: string]: object } = {
+ options = {
170
headers: {
171
'User-Agent': `Firebase/${PROTOCOL_VERSION}/${SDK_VERSION}/${process.platform}/${device}`,
172
'X-Firebase-GMPID': this.applicationId || ''
0 commit comments