fix: return correct byte count in HEAD request writer (#1443)

Co-authored-by: Kyle Mendell <kmendell@ofkm.us>
This commit is contained in:
Amit
2026-04-21 16:03:08 -04:00
committed by GitHub
parent 9834a08843
commit c96d591484

View File

@@ -16,7 +16,7 @@ type headWriter struct {
func (w *headWriter) Write(b []byte) (int, error) {
w.size += len(b)
return w.size, nil
return len(b), nil
}
func HeadMiddleware() gin.HandlerFunc {