diff options
Diffstat (limited to 'cli/bench/http/bun_http_send_file.js')
-rw-r--r-- | cli/bench/http/bun_http_send_file.js | 4 |
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), }); |