Add returned headers on s3 copy (fix #187, bis)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Alex 2022-01-11 12:45:48 +01:00
parent 723cde3545
commit 2f28b976b4
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -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))?)
}