From 8518c55b85cf69e3e1fc991edd860abb8a496d92 Mon Sep 17 00:00:00 2001 From: Nikita Kuznetsov Date: Sat, 13 May 2023 13:42:09 +0200 Subject: [PATCH] Pass adapter to request --- src/client/api/HttpApi.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/api/HttpApi.ts b/src/client/api/HttpApi.ts index 81334b6..486d487 100644 --- a/src/client/api/HttpApi.ts +++ b/src/client/api/HttpApi.ts @@ -202,7 +202,8 @@ export class HttpApi { this.parameters = { timeout: parameters?.timeout || 30000, // 30 seconds by default - apiKey: parameters?.apiKey + apiKey: parameters?.apiKey, + adapter: parameters?.adapter } // Shard @@ -331,6 +332,7 @@ export class HttpApi { }), { headers, timeout: this.parameters.timeout, + adapter: this.parameters.adapter }) if (res.status !== 200 || !res.data.ok) { throw Error('Received error: ' + JSON.stringify(res.data));