Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit bb59ada

Browse files
committed
🐛 Fix: unable to cancel fetch request with AbortSignal acacode#329.
1 parent 7440945 commit bb59ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/http-clients/fetch-http-client.eta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class HttpClient<SecurityDataType = unknown> {
183183
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
184184
...(requestParams.headers || {}),
185185
},
186-
signal: cancelToken ? this.createAbortSignal(cancelToken) : void 0,
186+
signal: cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal,
187187
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
188188
}
189189
).then(async (response) => {

0 commit comments

Comments
 (0)