go-json
go-json copied to clipboard
`http.MaxBytesReader` doesn't work properly with the `Decoder.Decode` function
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
.