From 13f0cfbc3342f8cd9e51740125fdfbb0412b78b8 Mon Sep 17 00:00:00 2001 From: KATT Date: Thu, 12 Oct 2023 14:28:55 +0200 Subject: [PATCH] chore: call `res.end()` in response --- examples/async/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/async/src/server.ts b/examples/async/src/server.ts index 50030a69..fd1fe70e 100644 --- a/examples/async/src/server.ts +++ b/examples/async/src/server.ts @@ -60,6 +60,8 @@ async function handleRequest( for await (const chunk of tsonStringifyAsync(obj)) { res.write(chunk); } + + res.end(); } const server = http.createServer(