Merge pull request #1058 from versity/ben/chunk_encoding

fix: chunk encoding with incorrect chunk signature
This commit is contained in:
Ben McClelland
2025-02-10 08:16:06 -08:00
committed by GitHub
+1 -1
View File
@@ -79,7 +79,7 @@ func NewSignedChunkReader(r io.Reader, authdata AuthData, region, secret string,
func (cr *ChunkReader) Read(p []byte) (int, error) {
n, err := cr.r.Read(p)
if err != nil && err != io.EOF {
return n, err
return 0, err
}
if cr.chunkDataLeft < int64(n) {