We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a0336f + 2f9a24c commit 731a009Copy full SHA for 731a009
src/request.c
@@ -360,9 +360,9 @@ static S3Status compose_amz_headers(const RequestParams *params,
360
}
361
// If byteCount != 0 then we're just copying a range, add header
362
if (params->byteCount > 0) {
363
- headers_append(1, "x-amz-copy-source-range: bytes=%ld-%ld",
364
- params->startByte,
365
- params->startByte + params->byteCount);
+ headers_append(1, "x-amz-copy-source-range: bytes=%llu-%llu",
+ (unsigned long long)params->startByte,
+ (unsigned long long)params->startByte + params->byteCount);
366
367
// And the x-amz-metadata-directive header
368
if (properties) {
0 commit comments