diff options
-rw-r--r-- | cli/bench/deno_http_native.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/bench/deno_http_native.js b/cli/bench/deno_http_native.js index d68f8ea81..abb2d061f 100644 --- a/cli/bench/deno_http_native.js +++ b/cli/bench/deno_http_native.js @@ -11,8 +11,8 @@ const body = encoder.encode("Hello World"); for await (const conn of listener) { (async () => { const requests = Deno.serveHttp(conn); - for await (const { respondWith } of requests) { - respondWith(new Response(body)) + for await (const event of requests) { + event.respondWith(new Response(body)) .catch((e) => console.log(e)); } })(); |