Patches
-
FIX: Only mutate
req.url
andreq.pathname
if sub-group is known: f4e62bfThis is an important fix! Any cases of
serve-static
that were mounted without abasename
path were behaving unexpectedly. This is becausereq.url
was mutated as soon as a route-handler was not found, turning incoming assets like/app.js
into/
, which meant that the target directory'sindex.html
content was always sent. -
Ensure that sub-groups &
basenames
always include a leading slash: 531c92dThis makes it easier & quicker to mutate the
req.url
andreq.pathname
values once a sub-group is found. -
Update README benchmarks after
polka.handler
changes: d8016cc