Commit 378356a6 authored by astaxie's avatar astaxie

Merge pull request #1001 from johndeng/develop

Fixed the status code issue at error handler.
parents d46833c6 30871e26
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment