go-json icon indicating copy to clipboard operation
go-json copied to clipboard

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

Open wbcustc opened this issue 1 year ago • 0 comments

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.

wbcustc avatar Nov 15 '23 23:11 wbcustc