Skip to content

Commit 5624353

Browse files
authored
fix: correct the passing of the signal option (#610)
1 parent 0da7c88 commit 5624353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fetch-wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function fetchWrapper(
4040
method: requestOptions.method,
4141
body: requestOptions.body,
4242
headers: requestOptions.headers as HeadersInit,
43-
signal: (requestOptions as any).signal,
43+
signal: requestOptions.request?.signal,
4444
// duplex must be set if request.body is ReadableStream or Async Iterables.
4545
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
4646
...(requestOptions.body && { duplex: "half" }),

0 commit comments

Comments
 (0)