fix(site-replication): align IAM and bucket metadata replication (#4318)

This commit is contained in:
唐小鸭
2026-07-06 22:15:02 +08:00
committed by GitHub
parent 5c67c508cb
commit 849ea9a122
6 changed files with 137 additions and 12 deletions
+6
View File
@@ -5581,6 +5581,12 @@ impl DefaultObjectUsecase {
{
response.headers.insert(header_name, header_value);
}
if info.replication_status != ReplicationStatusType::Empty
&& let Ok(header_name) = http::HeaderName::from_bytes(AMZ_BUCKET_REPLICATION_STATUS.to_ascii_lowercase().as_bytes())
&& let Ok(header_value) = HeaderValue::from_str(info.replication_status.as_str())
{
response.headers.insert(header_name, header_value);
}
let result = Ok(response);
let _ = helper.complete(&result);