fix(http): properly invoke abort (#1662)

Co-authored-by: amrbashir <github@amrbashir.me>
This commit is contained in:
Twilight
2024-08-14 19:18:32 +03:00
committed by GitHub
co-authored by amrbashir
parent af943db6f8
commit 84f8bd5e1e
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ export async function fetch(
throw new Error(ERROR_REQUEST_CANCELLED);
}
signal?.addEventListener("abort", () => abort);
signal?.addEventListener("abort", () => void abort());
interface FetchSendResponse {
status: number;