From 49a366bc74495764f2d05110960fa49dcd044eab Mon Sep 17 00:00:00 2001 From: Bert Date: Sat, 11 Nov 2023 16:33:25 -0500 Subject: [PATCH] fix: node send db header for GET requests (#646) --- node/src/remote/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/src/remote/client.ts b/node/src/remote/client.ts index 6d3cd934..68c52721 100644 --- a/node/src/remote/client.ts +++ b/node/src/remote/client.ts @@ -89,7 +89,8 @@ export class HttpLancedbClient { { headers: { 'Content-Type': 'application/json', - 'x-api-key': this._apiKey() + 'x-api-key': this._apiKey(), + ...(this._dbName !== undefined ? { 'x-lancedb-database': this._dbName } : {}) }, params, timeout: 10000