• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kikobeats / router-http / 30891753913
98%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2026 08:24AM UTC
Jobs 1
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Aug 2026 08:23AM UTC coverage: 97.978% (-2.0%) from 100.0%
30891753913

push

github

web-flow
fix: match .use() mounts by decoded longest prefix (#35)

* fix: match .use() mounts by decoded longest prefix

Path middleware skipped multi-segment mounts, trailing-slash mounts, and
percent-encoded segments while routes still matched — an auth bypass.
Normalize mounts on register, match the longest decoded prefix, and strip
the raw URL prefix by segment count so nested handlers see the right path.

Co-authored-by: Cursor <cursoragent@cursor.com>

* perf: restore O(1) first-segment mount lookup

Index path mounts by decoded first segment with longest-first candidates,
skip decode when the URL has no escapes, avoid mountPath+'/' allocs, and
use the registered path for strip unless the request is percent-encoded.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: decode mounts with decodeURI to keep %2F inert

decodeURIComponent turned %2F into a path separator, so a multi-segment
mount could match while raw segment stripping cut the wrong span.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>

113 of 118 branches covered (95.76%)

Branch coverage included in aggregate %.

82 of 86 new or added lines in 1 file covered. (95.35%)

323 of 327 relevant lines covered (98.78%)

81.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
97.98
-2.02% src/index.js
Jobs
ID Job ID Ran Files Coverage
1 30891753913.1 04 Aug 2026 08:24AM UTC 1
97.98
GitHub Action Run
Source Files on build 30891753913
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30891753913
  • 6c95dfbd on github
  • Prev Build on master (#30847312666)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc