1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 20:10:50 +00:00

code simplify for package middleware

This commit is contained in:
fuxiaohei 2015-02-23 11:50:45 +08:00
parent 2ed272aeb2
commit 181a7c35fe

View File

@ -334,6 +334,4 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
w.WriteHeader(isint)
fmt.Fprintln(w, msg)
return
}