Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Feb 28, 2025
1 parent ca028c4 commit f3ade2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/sources/http-server/shouldDiscoverRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function shouldDiscoverRoute({

const segments = route.split("/");

// e.g. /path/to/.file or /.directory/file
// Do not discover routes with dot files like `/path/to/.file` or `/.directory/file`
// We want to allow discovery of well-known URIs like `/.well-known/acme-challenge`
if (!isWellKnownURI(route) && segments.some(isDotFile)) {
return false;
}
Expand Down

0 comments on commit f3ade2c

Please sign in to comment.