From 50fc5d169aec43b4cc0c4ff08a8073bca99c18f4 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sun, 4 Sep 2022 18:29:38 +0530 Subject: fix(bench): make sure bytes/response is equal (#15763) --- cli/bench/http/bun_hono_router.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/bench/http/bun_hono_router.js') diff --git a/cli/bench/http/bun_hono_router.js b/cli/bench/http/bun_hono_router.js index a0bba67d5..38f9c3542 100644 --- a/cli/bench/http/bun_hono_router.js +++ b/cli/bench/http/bun_hono_router.js @@ -3,6 +3,10 @@ const port = Bun.argv[2] || "4545"; const { Hono } = require("../testdata/npm/hono/dist/index.js"); const app = new Hono(); +app.use("*", async (c, n) => { + c.res.headers.set("Date", (new Date()).toUTCString()); + await n(); +}); app.get("/", (c) => c.text("Hello, World!")); Bun.serve({ -- cgit v1.2.3