Skip to content

Commit 5b94fb7

Browse files
Merge pull request #535 from AikidoSec/hansott-patch-1
Update comment
2 parents a69e463 + 8f078eb commit 5b94fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/helpers/matchEndpoints.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export function matchEndpoints(context: LimitedContext, endpoints: Endpoint[]) {
3838
}
3939

4040
if (context.url) {
41-
// req.url is relative, so we need to prepend a host to make it absolute
42-
// We just match the pathname, we don't use the host for matching
41+
// Find matching wildcard routes
42+
// Use path from URL
4343
const path = tryParseURLPath(context.url);
4444
const wildcards = possible
4545
.filter((endpoint) => endpoint.route.includes("*"))

0 commit comments

Comments
 (0)