remove Warn on missing rsp code

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-03-24 23:58:27 +03:00
parent 4959b0040b
commit 360b15a3b6

View File

@ -247,7 +247,8 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if scode != 0 { if scode != 0 {
w.WriteHeader(scode) w.WriteHeader(scode)
} else { } else {
handler.sopts.Logger.Warn(handler.sopts.Context, "response code not set in handler via SetRspCode(ctx, http.StatusXXX)") //handler.sopts.Logger.Warn(handler.sopts.Context, "response code not set in handler via SetRspCode(ctx, http.StatusXXX)")
w.WriteHeader(200)
} }
w.Write(b) w.Write(b)
} }