Skip to content

Commit

Permalink
fix(index): check options.decorateReply is a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 4, 2024
1 parent 44cda88 commit 43d3551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function fastifyAccepts (fastify, options, done) {
})
})

if (options.decorateReply) {
if (options.decorateReply === true) {
fastify.decorateReply('requestAccepts', replyAcceptMethod)

methodNames.forEach(methodName => {
Expand Down

0 comments on commit 43d3551

Please sign in to comment.