Parse chunk length in hexadecimal

Resolves an issue when uploading large objects and parts.
References #24.
pull/114/head
Andrew Gaul 2016-01-09 16:56:12 -08:00
rodzic e7ba7e5c0d
commit 5c3333d4d9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -45,7 +45,7 @@ final class ChunkedInputStream extends FilterInputStream {
return -1;
}
String[] parts = line.split(";", 2);
currentLength = Integer.parseInt(parts[0]);
currentLength = Integer.parseInt(parts[0], 16);
currentSignature = parts[1];
chunk = new byte[currentLength];
currentIndex = 0;