mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
Set appropriate encryption headers in HEAD object response (#5596)
Currently we don't set two SSE-C specific headers fix it for AWS S3 compatibility.
This commit is contained in:
parent
120b061966
commit
1b7b8f14c9
@ -256,6 +256,8 @@ func (api objectAPIHandlers) HeadObjectHandler(w http.ResponseWriter, r *http.Re
|
||||
writeErrorResponse(w, ErrSSEEncryptedObject, r.URL)
|
||||
return
|
||||
}
|
||||
w.Header().Set(SSECustomerAlgorithm, r.Header.Get(SSECustomerAlgorithm))
|
||||
w.Header().Set(SSECustomerKeyMD5, r.Header.Get(SSECustomerKeyMD5))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user