HarperFast/harper

Incorrect logic for matching index.html

Open

#297 opened on Mar 29, 2026

View on GitHub
 (4 comments) (0 reactions) (1 assignee)JavaScript (7 forks)github user discovery
good first issue

Repository metrics

Stars
 (75 stars)
PR merge metrics
 (PR metrics pending)

Description

The static default index file matcher uses logic of urlPath.endsWith('index.html') which means it not only matches index.html, but also another-index.html, wrong-index.html, and really-wrong-index.html. And picks a winner in somewhat unpredictable fashion.

Contributor guide