Mask high bits in ChunkedInputStream.read

Previously read could erroneously return -1 end of stream when
returning ASCII 128.
pull/114/head
Andrew Gaul 2016-01-09 18:48:26 -08:00
rodzic 9976f3c02f
commit 3a042ff6e8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -56,7 +56,7 @@ final class ChunkedInputStream extends FilterInputStream {
}
readLine(in);
}
return chunk[currentIndex++];
return chunk[currentIndex++] & 0xFF;
}
@Override