You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifstatusCode, ok:=errors.Unwrap(err).(HttpStatusCodeError); ok {
141
+
ifstatusCode, ok:=errs.UnwrapOrSelf(err).(HttpStatusCodeError); ok {
141
142
code=int(statusCode)
142
143
}
143
144
http.Error(w, err.Error(), code)
@@ -199,7 +200,7 @@ func ServeHTTP(w http.ResponseWriter, r *http.Request, name string, modTime time
199
200
log.Warnf("Maybe size incorrect or reader not giving correct/full data, or connection closed before finish. written bytes: %d ,sendSize:%d, ", written, sendSize)
200
201
}
201
202
code=http.StatusInternalServerError
202
-
ifstatusCode, ok:=errors.Unwrap(err).(HttpStatusCodeError); ok {
203
+
ifstatusCode, ok:=errs.UnwrapOrSelf(err).(HttpStatusCodeError); ok {
0 commit comments