feat: pass headers
All checks were successful
CI Pipeline / build-and-test (push) Successful in 2m6s
CI Pipeline / publish (push) Successful in 29s

This commit is contained in:
Leandro Costa 2025-09-21 20:21:35 -03:00
parent fcf57d8cd1
commit 5b1699aff4

View file

@ -176,14 +176,14 @@ export class LhispOauthClient<iAccessToken extends AccessToken = AccessToken> {
}; };
const response = await axios.request<ResponseType>({ const response = await axios.request<ResponseType>({
...opt,
method, method,
url: `${this.apiUrl}${path}`, url: `${this.apiUrl}${path}`,
httpsAgent: this.agent, httpsAgent: this.agent,
headers, headers: { ...headers, ...opt.headers },
data, data,
params, params,
timeout: this.timeout, timeout: this.timeout,
...opt,
}); });
return response.data; return response.data;