From 985652bf9e31b02d5d1557353fe393e9aa2f25e9 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Tue, 21 Mar 2023 12:20:44 +0000 Subject: [PATCH] fix(#240): remove another pointer mutation --- src/util/BaseRestClient.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index 87771fa..5ad441e 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -234,10 +234,6 @@ export default abstract class BaseRestClient { // USDC endpoints, unified margin and a few others use a different way of authenticating requests (headers instead of params) if (this.clientType === REST_CLIENT_TYPE_ENUM.v3) { - if (!options.headers) { - options.headers = {}; - } - const signResult = await this.prepareSignParams( method, 'v5auth',