Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fixed range for S3_copy_object_range
Browse files Browse the repository at this point in the history
Fixes bji#102
  • Loading branch information
JustinKyleJames authored and trel committed Dec 9, 2020
1 parent 287e4be commit 9284758
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 @@ -402,7 +402,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 9284758

Please sign in to comment.