Skip to content

Commit 3ce5c59

Browse files
committed
fixing lenght calculation on HTTP range requests
1 parent 3ef70b7 commit 3ce5c59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

roda-core/roda-core/src/main/java/org/roda/core/storage/RangeConsumesOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void consumeOutputStream(OutputStream out, int from, int len) throws IOEx
6060
@Override
6161
public void consumeOutputStream(OutputStream out, long from, long end) {
6262
try {
63-
payload.writeTo(out, from, end - from);
63+
payload.writeTo(out, from, end - from + 1);
6464
} catch (IOException e) {
6565
LOGGER.warn("Error writing to output stream", e);
6666
}

0 commit comments

Comments
 (0)