Skip to content

Commit

Permalink
Update fetch-http-client.eta (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonukai authored Aug 15, 2022
1 parent 537e250 commit de1a7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base/http-clients/fetch-http-client.eta
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class HttpClient<SecurityDataType = unknown> {
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
...(requestParams.headers || {}),
},
signal: cancelToken ? this.createAbortSignal(cancelToken) : void 0,
signal: cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal,
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
}
).then(async (response) => {
Expand Down

0 comments on commit de1a7f3

Please sign in to comment.