From 30871e261790b5a8a9801534e6fe0ef6a7994a70 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 10 Jan 2015 17:35:35 +0800 Subject: [PATCH] Fixed the status issue at error handler. --- middleware/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/error.go b/middleware/error.go index 3b7191e9..052e977c 100644 --- a/middleware/error.go +++ b/middleware/error.go @@ -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")