Skip to content

Commit

Permalink
cherry pick #2722 to release-4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
JmPotato authored and rleungx committed Sep 7, 2020
1 parent 6830f5b commit ad66f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiutil/serverapi/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (p *customReverseProxies) ServeHTTP(w http.ResponseWriter, r *http.Request)
copyHeader(w.Header(), resp.Header)
w.WriteHeader(resp.StatusCode)
if _, err := w.Write(b); err != nil {
log.Error("write failed", zap.Error(err))
log.Error("write failed", errs.ZapError(errs.ErrWriteHTTPBody, err))
continue
}

Expand Down

0 comments on commit ad66f48

Please sign in to comment.