diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-09-04 18:29:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-04 18:29:38 +0530 |
commit | 50fc5d169aec43b4cc0c4ff08a8073bca99c18f4 (patch) | |
tree | 8af22fe7b560ddb7a16b269e644629e2a3891231 /cli/bench/http/bun_hono_router.js | |
parent | e324151520c62c9503e5e38da66827cd7815ea14 (diff) |
fix(bench): make sure bytes/response is equal (#15763)
Diffstat (limited to 'cli/bench/http/bun_hono_router.js')
-rw-r--r-- | cli/bench/http/bun_hono_router.js | 4 |
1 files changed, 4 insertions, 0 deletions
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({ |