Skip to content

Commit

Permalink
fix: correct the passing of the signal option (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored Jul 9, 2023
1 parent 0da7c88 commit 5624353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function fetchWrapper(
method: requestOptions.method,
body: requestOptions.body,
headers: requestOptions.headers as HeadersInit,
signal: (requestOptions as any).signal,
signal: requestOptions.request?.signal,
// duplex must be set if request.body is ReadableStream or Async Iterables.
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
...(requestOptions.body && { duplex: "half" }),
Expand Down

0 comments on commit 5624353

Please sign in to comment.