From 05d3ec65453f0dfb00956d2807a080e73492756d Mon Sep 17 00:00:00 2001 From: Saturn745 Date: Sun, 29 Sep 2024 12:13:59 -0700 Subject: [PATCH] Pass connect timeout --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c05359c..e2e2382 100644 --- a/src/index.ts +++ b/src/index.ts @@ -70,7 +70,8 @@ export default function axiosAdapter() { method: config.method?.toUpperCase(), url: getCorrectUrl(config.baseURL, config.url, config.params), headers: headers as [string, string][], - data: getCorrectBodyType(config.data) ?? undefined + data: getCorrectBodyType(config.data) ?? undefined, + connectTimeout: config.timeout ?? undefined, }; const rid = await invoke("plugin:http|fetch", {