diff options
Diffstat (limited to 'std/http/io.ts')
-rw-r--r-- | std/http/io.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/http/io.ts b/std/http/io.ts index b6bbfa17b..37285fdbf 100644 --- a/std/http/io.ts +++ b/std/http/io.ts @@ -164,7 +164,7 @@ export async function writeChunkedBody( r: Deno.Reader ): Promise<void> { const writer = BufWriter.create(w); - for await (const chunk of Deno.toAsyncIterator(r)) { + for await (const chunk of Deno.iter(r)) { if (chunk.byteLength <= 0) continue; const start = encoder.encode(`${chunk.byteLength.toString(16)}\r\n`); const end = encoder.encode("\r\n"); |