From 2f28b976b42ca4c902f40fee2248917ecc53f393 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 11 Jan 2022 12:45:48 +0100 Subject: [PATCH] Add returned headers on s3 copy (fix #187, bis) --- src/api/s3_copy.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/s3_copy.rs b/src/api/s3_copy.rs index 02f8ad0d..cab173b1 100644 --- a/src/api/s3_copy.rs +++ b/src/api/s3_copy.rs @@ -170,6 +170,11 @@ pub async fn handle_copy( Ok(Response::builder() .header("Content-Type", "application/xml") + .header("x-amz-version-id", hex::encode(new_uuid)) + .header( + "x-amz-copy-source-version-id", + hex::encode(source_last_v.uuid), + ) .body(Body::from(xml))?) }