mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 00:00:54 +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.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||||
w.WriteHeader(isint)
|
w.WriteHeader(isint)
|
||||||
fmt.Fprintln(w, msg)
|
fmt.Fprintln(w, msg)
|
||||||
return
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user