feat: add responseType to axios config

This commit is contained in:
ValdiANS
2026-04-09 14:15:29 +07:00
parent e50f4dbddb
commit 62d250109b
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ export async function httpClient<T, B = unknown>(
data: opts.body,
timeout: opts.timeoutMs ?? 10_000,
withCredentials: isCookieAuth && !isBearerAuth,
responseType: opts.responseType,
headers: {
...(isFormData ? {} : { 'Content-Type': 'application/json' }),
...(opts.headers ?? {}),