When an http client does not consume the whole body, we panic'ed a custom message instead of the required sentinel value. For the details, check ¹ and look for ErrAbortHandler. ¹: https://pkg.go.dev/net/http Co-authored-by: César Gallego Rodríguez <gallego.cesar@gmail.com>