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