mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Make sure to filter out internal metadata (#5601)
Currently we reply back `X-Minio-Internal` values back to the client for an encrypted object, we should filter these out and only reply AWS compatible headers.
This commit is contained in:
parent
5f37988db5
commit
d71b1d25f8
@ -89,6 +89,11 @@ func setObjectHeaders(w http.ResponseWriter, objInfo ObjectInfo, contentRange *h
|
||||
|
||||
// Set all other user defined metadata.
|
||||
for k, v := range objInfo.UserDefined {
|
||||
if hasPrefix(k, ReservedMetadataPrefix) {
|
||||
// Do not need to send any internal metadata
|
||||
// values to client.
|
||||
continue
|
||||
}
|
||||
w.Header().Set(k, v)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user