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

Commit

Permalink
[#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 59b6237 commit 290c88a
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 @@ -399,7 +399,7 @@ static S3Status compose_amz_headers(const RequestParams *params,
if (params->byteCount > 0) {
headers_append(1, "x-amz-copy-source-range: bytes=%lld-%lld",
(unsigned long long) params->startByte,
(unsigned long long) (params->startByte + params->byteCount) );
(unsigned long long) (params->startByte + params->byteCount - 1) );
}
// And the x-amz-metadata-directive header
if (properties) {
Expand Down

0 comments on commit 290c88a

Please sign in to comment.