Skip to content

net/http: export errCannotRewind #54173

Closed as not planned
Closed as not planned
@dillonstreator

Description

@dillonstreator

var errCannotRewind = errors.New("net/http: cannot rewind body after connection loss")

I'm having to resort to string matching to identify this error which is not ideal

strings.Contains(err.Error(), "net/http: cannot rewind body after connection loss")

I'd love to just be able to use errors.Is

errors.Is(err, http.ErrCannotRewind)

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions