mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-28 05:18:41 +08:00

Before, if there was an error in the error handler, we would not write a status code, which resulted in Go writing a 200 for us by default, which does not make sense when there's an error. Now we write the second error's status if available, otherwise 500.