fix(sse): update comment to reflect actual SSE behavior for bucket-less config

Co-authored-by: overtrue <1472352+overtrue@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-28 18:27:48 +00:00
parent 37c887634d
commit a53caaa038

View File

@@ -206,8 +206,8 @@ async fn prepare_sse_configuration(
match e {
Error::ConfigNotFound => {
// The bucket has no SSE config. If the user explicitly requested
// aws:kms, we must honor that — return the explicit SSE header so
// downstream logic can try (and fail if KMS is unavailable).
// any SSE (e.g. AES256 or aws:kms), honor it — return the explicit
// SSE header so downstream logic can apply the requested encryption.
if let Some(sse) = server_side_encryption {
Ok(Some(SseConfiguration {
effective_sse: sse,