1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-29 19:11:29 +00:00

Merge pull request #1001 from johndeng/develop

Fixed the status code issue at error handler.
This commit is contained in:
astaxie 2015-01-12 09:54:26 -08:00
commit 378356a65e

View File

@ -328,7 +328,7 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin
if err != nil {
isint = 500
}
if isint == 400 {
if isint == 404 {
msg = "404 page not found"
}
w.Header().Set("Content-Type", "text/plain; charset=utf-8")