修复旧版请求函数中的重定向选项

This commit is contained in:
lyswhut
2026-06-07 11:45:59 +08:00
parent 5c46ca648d
commit a7672168c6
+2
View File
@@ -206,6 +206,8 @@ export const request = async <T = unknown>(url: string, options: Options = {}):
body, body,
signal: options.signal, signal: options.signal,
dispatcher: buildRequestDispatcher(options), dispatcher: buildRequestDispatcher(options),
// @ts-expect-error
maxRedirections: options.maxRedirect ?? defaultOptions.maxRedirect,
}).then(async(response) => { }).then(async(response) => {
if (options.needBody) { if (options.needBody) {
return { return {