mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-19 06:19:40 +00:00
Since #7017, every *fs.PathError from stat becomes fs.ErrInvalid, and that includes ENOTDIR. So a request like /index.php/foo got 400 instead of 404, and pass_thru no longer fell through to the next handler. Map ENOTDIR to fs.ErrNotExist before that check. Other path errors, such as NUL bytes, overly long names, or transient I/O failures, keep their current handling. |
||
|---|---|---|
| .. | ||
| testdata | ||
| browse.go | ||
| browse.html | ||
| browsetplcontext.go | ||
| browsetplcontext_bench_test.go | ||
| browsetplcontext_test.go | ||
| caddyfile.go | ||
| command.go | ||
| matcher.go | ||
| matcher_test.go | ||
| staticfiles.go | ||
| staticfiles_test.go | ||
| staticfiles_windows_test.go | ||