Skip to content

Commit

Permalink
remove unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 4, 2024
1 parent c9393f5 commit 78ed80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 78ed80a

Please sign in to comment.