mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 12:01:28 +00:00
middleware: error page set the content-type
This commit is contained in:
parent
428aec1c24
commit
7a39a3c52f
@ -314,6 +314,7 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin
|
||||
if err != nil {
|
||||
isint = 500
|
||||
}
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
w.WriteHeader(isint)
|
||||
h(w, r)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user