Fix route wrap (#18360)

tokarchuk/v1.17
wxiaoguang 3 years ago committed by GitHub
parent f91092453e
commit 5ff899d5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/web/wrap_convert.go

@ -93,6 +93,9 @@ func convertHandler(handler interface{}) wrappedHandlerFunc {
}
routing.UpdateFuncInfo(req.Context(), funcInfo)
t(next).ServeHTTP(resp, req)
if r, ok := resp.(context.ResponseWriter); ok && r.Status() > 0 {
done = true
}
return
}
default:

Loading…
Cancel
Save