fix: fix http plugin fetch init with connectTimeout. (#858)

This commit is contained in:
hygkui
2023-12-28 18:07:52 +02:00
committed by GitHub
parent e80626cf81
commit 1a347203a5
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ export async function fetch(
init?: RequestInit & ClientOptions,
): Promise<Response> {
const maxRedirections = init?.maxRedirections;
const connectTimeout = init?.maxRedirections;
const connectTimeout = init?.connectTimeout;
const proxy = init?.proxy;
// Remove these fields before creating the request