Commit 7ff0559
fix(http): ensure path boundary before wildcard in static.fileserver route
The Go net/http router requires wildcard segments like {path...} to start
at a path boundary (/). The static.fileserver was generating routes like
"GET /ui{path...}" which panicked. Now ensures a / separator:
"/ui" → "/ui/{path...}", "/" → "/{path...}".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2e62989 commit 7ff0559
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
0 commit comments