mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 09:40:41 +00:00
code simplify for package middleware
This commit is contained in:
@ -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
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user