feat: pass headers
This commit is contained in:
parent
fcf57d8cd1
commit
5b1699aff4
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue