Found that in an Error() func status code wasn't set. Fixed that.
This commit is contained in:
parent
c2278fdd2e
commit
b513a5ff1d
@ -217,6 +217,7 @@ func Error(w http.ResponseWriter, r *http.Request, code int, reason string) {
|
||||
return
|
||||
}
|
||||
|
||||
w.WriteHeader(code)
|
||||
web.ErrorXXX(utils.MainSite(r.Host), code, reason, w)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user