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>({
|
||||
...opt,
|
||||
method,
|
||||
url: `${this.apiUrl}${path}`,
|
||||
httpsAgent: this.agent,
|
||||
headers,
|
||||
headers: { ...headers, ...opt.headers },
|
||||
data,
|
||||
params,
|
||||
timeout: this.timeout,
|
||||
...opt,
|
||||
});
|
||||
|
||||
return response.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue