mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 03:41:28 +00:00
Fixed the status issue at error handler.
This commit is contained in:
parent
d46833c6d8
commit
30871e2617
@ -328,7 +328,7 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
isint = 500
|
isint = 500
|
||||||
}
|
}
|
||||||
if isint == 400 {
|
if isint == 404 {
|
||||||
msg = "404 page not found"
|
msg = "404 page not found"
|
||||||
}
|
}
|
||||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||||
|
Loading…
Reference in New Issue
Block a user