Commit 181a7c35 authored by fuxiaohei's avatar fuxiaohei

code simplify for package middleware

parent 2ed272ae
...@@ -334,6 +334,4 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin ...@@ -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
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment