181a7c35 by fuxiaohei

code simplify for package middleware

1 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
334 w.Header().Set("Content-Type", "text/plain; charset=utf-8") 334 w.Header().Set("Content-Type", "text/plain; charset=utf-8")
335 w.WriteHeader(isint) 335 w.WriteHeader(isint)
336 fmt.Fprintln(w, msg) 336 fmt.Fprintln(w, msg)
337 return
338
339 } 337 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!