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:
parent
2ed272aeb2
commit
181a7c35fe
@ -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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user