style: prettier

This commit is contained in:
Derrick Hammer 2024-03-18 09:10:07 -04:00
parent 7bc48484a2
commit 5bc2915655
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 46 additions and 47 deletions

View File

@ -1,5 +1,5 @@
import {AxiosHeaders, AxiosProgressEvent, AxiosRequestConfig} from "axios"; import { AxiosHeaders, AxiosProgressEvent, AxiosRequestConfig } from "axios";
import {S5Client} from "../client.js"; import { S5Client } from "../client.js";
/** /**
* Custom client options. * Custom client options.
@ -49,11 +49,10 @@ export function optionsToConfig(
config.onUploadProgress = finalOptions?.onUploadProgress; config.onUploadProgress = finalOptions?.onUploadProgress;
} }
const headers = new AxiosHeaders(config.headers as AxiosHeaders) const headers = new AxiosHeaders(config.headers as AxiosHeaders);
if (finalOptions?.customCookie) { if (finalOptions?.customCookie) {
headers.set("Cookie", finalOptions.customCookie); headers.set("Cookie", finalOptions.customCookie);
} }
if (finalOptions?.customUserAgent) { if (finalOptions?.customUserAgent) {
headers.set("User-Agent", finalOptions.customUserAgent); headers.set("User-Agent", finalOptions.customUserAgent);