Skip to content

1.20 cause stack overflow #74

@nakastoev

Description

@nakastoev

The issue is in bodyWriter.ReadFrom (line 49): when w.body != nil, it calls io.Copy(w, r), which detects that w implements io.ReaderFrom and calls ReadFrom again, causing infinite recursion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions