revendor with fixed rest lib

This commit is contained in:
Umputun
2022-01-06 01:48:10 -06:00
parent e2a40bc7a6
commit 05069cbfaa
4 changed files with 7 additions and 3 deletions

View File

@@ -155,7 +155,9 @@ type respWriter404 struct {
func (w *respWriter404) WriteHeader(status int) {
w.status = status
w.Header().Set("Content-Type", "text/html; charset=utf-8")
if status == http.StatusNotFound {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
}
w.ResponseWriter.WriteHeader(status)
}