From af2dd2e59883e7a89a9a1c77c52964864f4d31a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Del=C3=A9pine?= Date: Tue, 19 Sep 2023 16:07:45 +0200 Subject: [PATCH] fix fetch parameter (#29205) --- files/en-us/web/api/streams_api/using_readable_streams/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/streams_api/using_readable_streams/index.md b/files/en-us/web/api/streams_api/using_readable_streams/index.md index 628a4f3d5a508a4..044419c4eac47b5 100644 --- a/files/en-us/web/api/streams_api/using_readable_streams/index.md +++ b/files/en-us/web/api/streams_api/using_readable_streams/index.md @@ -207,7 +207,7 @@ button.addEventListener("click", () => aborter.abort()); logChunks("http://example.com/somefile.txt", { signal: aborter.signal }); async function logChunks(url, { signal }) { - const response = await fetch(url, signal); + const response = await fetch(url, { signal }); for await (const chunk of response.body) { // Do something with the chunk }