kopia lustrzana https://github.com/gaul/s3proxy
Mask high bits in ChunkedInputStream.read
Previously read could erroneously return -1 end of stream when returning ASCII 128.pull/114/head
rodzic
9976f3c02f
commit
3a042ff6e8
|
@ -56,7 +56,7 @@ final class ChunkedInputStream extends FilterInputStream {
|
|||
}
|
||||
readLine(in);
|
||||
}
|
||||
return chunk[currentIndex++];
|
||||
return chunk[currentIndex++] & 0xFF;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Ładowanie…
Reference in New Issue