net/netutil/connection.go
Function ModifyConnectionRequest
has 5 return statements (exceeds 4 allowed). Open
Open
func ModifyConnectionRequest(conn net.Conn, modRequest func(r *http.Request) error) error {
// Code adapted from: https://stackoverflow.com/a/76684845/1908967
if conn == nil {
return errors.New("net.Conn cannot be nil")
}