mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-24 07:42:30 -04:00
Detailed godoc; better error handling convention
This commit is contained in:
@@ -69,6 +69,7 @@ func (h ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, er
|
||||
|
||||
if status >= 400 {
|
||||
h.errorPage(w, status)
|
||||
return 0, err // status < 400 signals that a response has been written
|
||||
}
|
||||
|
||||
return status, err
|
||||
|
||||
Reference in New Issue
Block a user