Skip to content

http.MaxBytesReader doesn't work properly with the Decoder.Decode function #485

@wbcustc

Description

@wbcustc

When a http.MaxBytesReader created io.ReadCloser passed into Decoder.Decode function, if the reader reads more bytes than allowed, io.EOF error will be returned instead of expected http.MaxBytesError.

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