From 78ed80a852159b0f3ca816b464e6f01c9b263c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Sun, 4 Feb 2024 17:53:44 +0100 Subject: [PATCH] remove unrelated changes --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index fffeec3..270075c 100644 --- a/index.js +++ b/index.js @@ -290,8 +290,8 @@ async function fastifyStatic (fastify, opts) { }) } - if (opts.setHeaders !== undefined) { - stream.on('headers', opts.setHeaders) + if (setHeaders !== undefined) { + stream.on('headers', setHeaders) } stream.on('directory', function (_, path) {