Skip to content

Commit 56347bc

Browse files
authored
📦 NEW: Remove default request timeout (#116)
1 parent 2757258 commit 56347bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎packages/core/src/common/request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ export class Request {
103103
method: options.method,
104104
headers,
105105
body: JSON.stringify(options.body),
106-
signal: AbortSignal.timeout(this.config.timeout || 30000),
106+
...(this.config.timeout && {
107+
signal: AbortSignal.timeout(this.config.timeout),
108+
}),
107109
});
108110
return resp;
109111
}

0 commit comments

Comments
 (0)