Repository navigation
Commit 691ebeb
committed
fix(dev): use URL separators for static file paths
getStatic built the forwarded URL from path.relative, which yields
backslashes on Windows. @fastify/static 10.1.4 added a path spelling
guard that stats the joined path, finds the file under a different
spelling, and returns 403. Normalize to forward slashes.1 parent 579a171 commit 691ebeb
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | | - | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
0 commit comments