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 ae10ffe commit c9393f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ async function fastifyStatic (fastify, opts) {
}
}

const allowedPath = opts.allowedPath
function pumpSendToReply (
request,
reply,
Expand All @@ -211,7 +212,7 @@ async function fastifyStatic (fastify, opts) {
}
}

if (opts.allowedPath && !opts.allowedPath(pathname, options.root, request)) {
if (allowedPath && !allowedPath(pathname, options.root, request)) {
return reply.callNotFound()
}

Expand Down

0 comments on commit c9393f5

Please sign in to comment.