From 5b1699aff43337bd6b6aad23cd7c910dd65d6a90 Mon Sep 17 00:00:00 2001 From: Leandro Costa Date: Sun, 21 Sep 2025 20:21:35 -0300 Subject: [PATCH] feat: pass headers --- src/lhisp-oauth-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lhisp-oauth-client.ts b/src/lhisp-oauth-client.ts index a9f3e64..d6c4ad6 100644 --- a/src/lhisp-oauth-client.ts +++ b/src/lhisp-oauth-client.ts @@ -176,14 +176,14 @@ export class LhispOauthClient { }; const response = await axios.request({ + ...opt, method, url: `${this.apiUrl}${path}`, httpsAgent: this.agent, - headers, + headers: { ...headers, ...opt.headers }, data, params, timeout: this.timeout, - ...opt, }); return response.data;