summaryrefslogtreecommitdiff
path: root/cli/bench/http/bun_http_send_file.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-09-04 18:29:38 +0530
committerGitHub <noreply@github.com>2022-09-04 18:29:38 +0530
commit50fc5d169aec43b4cc0c4ff08a8073bca99c18f4 (patch)
tree8af22fe7b560ddb7a16b269e644629e2a3891231 /cli/bench/http/bun_http_send_file.js
parente324151520c62c9503e5e38da66827cd7815ea14 (diff)
fix(bench): make sure bytes/response is equal (#15763)
Diffstat (limited to 'cli/bench/http/bun_http_send_file.js')
-rw-r--r--cli/bench/http/bun_http_send_file.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/bench/http/bun_http_send_file.js b/cli/bench/http/bun_http_send_file.js
index 615c35d31..268da9ae9 100644
--- a/cli/bench/http/bun_http_send_file.js
+++ b/cli/bench/http/bun_http_send_file.js
@@ -6,7 +6,9 @@ const path = new URL("../testdata/128k.bin", import.meta.url).pathname;
Bun.serve({
fetch(_req) {
const file = Bun.file(path);
- return new Response(file);
+ return new Response(file, {
+ headers: { "Date": (new Date()).toUTCString() },
+ });
},
port: Number(port),
});