You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(filesystem) :: return 404 when a request resolves to a directory
When a directory name contains a dot the request is routed to the static file handler, which fails to read it and renders an error page.
Reading a directory reports `IsADirectory` on unix but `PermissionDenied` on windows, so the status is decided by inspecting the path rather than by the error kind. The regression test covers both platforms: on unix it also exercises the windows branch, since `IsADirectory` is no longer special-cased.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
```
14
14
15
15
SQLPage now keeps the variable value, producing `https://api.example.com/john.doe` as expected.
16
+
- A request that resolves to a directory now returns a 404 page. Directory names that contain a dot are routed to the static file handler, which used to fail with a server error instead.
0 commit comments