Skip to content

Commit

Permalink
[irods#5] Fixed range for S3_copy_object_range
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinKyleJames authored and trel committed Dec 5, 2020
1 parent cb58896 commit 9d275eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static S3Status compose_amz_headers(const RequestParams *params,
if (params->byteCount > 0) {
char byteRange[S3_MAX_METADATA_SIZE];
snprintf(byteRange, sizeof(byteRange), "bytes=%zd-%zd",
params->startByte, params->startByte + params->byteCount);
params->startByte, params->startByte + params->byteCount - 1);
append_amz_header(values, 0, "x-amz-copy-source-range", byteRange);
}
// And the x-amz-metadata-directive header
Expand Down

0 comments on commit 9d275eb

Please sign in to comment.