mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Send correct status on 404 in handleHTTPError
This commit is contained in:
parent
8a07c0f0a0
commit
19215b0355
1 changed files with 1 additions and 0 deletions
|
@ -538,6 +538,7 @@ func (h *Handler) handleHTTPError(w http.ResponseWriter, r *http.Request, err er
|
|||
h.errors.Gone.ExecuteTemplate(w, "base", p)
|
||||
return
|
||||
} else if err.Status == http.StatusNotFound {
|
||||
w.WriteHeader(err.Status)
|
||||
h.errors.NotFound.ExecuteTemplate(w, "base", pageForReq(h.app, r))
|
||||
return
|
||||
} else if err.Status == http.StatusInternalServerError {
|
||||
|
|
Loading…
Reference in a new issue