mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-27 04:15:55 +03:00
e3591009dc
* Add handler for unhandled errors in errorChain Currently, when an error chain is defined, the default error handler is bypassed entirely - even if the error chain doesn't handle every error. This results in pages returning a blank 200 OK page. For instance, it's possible for an error chain to match on the error status code and only handle a certain subtype of errors (like 403s). In this case, we'd want any other errors to still go through the default handler and return an empty page with the status code. This PR changes the "suffix handler" passed to errorChain.Compile to set the status code of the response to the error status code. Fixes #3053 * Move the errorHandlerChain middleware to variable * Style fix |
||
---|---|---|
.. | ||
caddyauth | ||
encode | ||
fileserver | ||
headers | ||
httpcache | ||
requestbody | ||
reverseproxy | ||
rewrite | ||
standard | ||
templates | ||
autohttps.go | ||
caddyhttp.go | ||
errors.go | ||
marshalers.go | ||
matchers.go | ||
matchers_test.go | ||
replacer.go | ||
replacer_test.go | ||
responsewriter.go | ||
routes.go | ||
server.go | ||
staticerror.go | ||
staticresp.go | ||
staticresp_test.go | ||
subroute.go | ||
vars.go |