The trailing data check after a full-length final chunk ignored the byte count, so a reader returning (1, io.EOF), as io.Reader permits, would have its trailing data silently accepted, and a transient (0, nil) return would be misreported as trailing data. io.ReadFull handles both. |
||
|---|---|---|
| .. | ||
| stream.go | ||
| stream_test.go | ||