style: prettier
This commit is contained in:
parent
7bc48484a2
commit
5bc2915655
|
@ -1,5 +1,5 @@
|
|||
import {AxiosHeaders, AxiosProgressEvent, AxiosRequestConfig} from "axios";
|
||||
import {S5Client} from "../client.js";
|
||||
import { AxiosHeaders, AxiosProgressEvent, AxiosRequestConfig } from "axios";
|
||||
import { S5Client } from "../client.js";
|
||||
|
||||
/**
|
||||
* Custom client options.
|
||||
|
@ -49,11 +49,10 @@ export function optionsToConfig(
|
|||
config.onUploadProgress = finalOptions?.onUploadProgress;
|
||||
}
|
||||
|
||||
const headers = new AxiosHeaders(config.headers as AxiosHeaders)
|
||||
const headers = new AxiosHeaders(config.headers as AxiosHeaders);
|
||||
|
||||
if (finalOptions?.customCookie) {
|
||||
headers.set("Cookie", finalOptions.customCookie);
|
||||
|
||||
}
|
||||
if (finalOptions?.customUserAgent) {
|
||||
headers.set("User-Agent", finalOptions.customUserAgent);
|
||||
|
|
Loading…
Reference in New Issue