fix: node send db header for GET requests (#646)

This commit is contained in:
Bert
2023-11-11 16:33:25 -05:00
committed by Weston Pace
parent d59dbf8230
commit 49a366bc74

View File

@@ -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