mirror of
https://github.com/minio/minio.git
synced 2025-03-03 15:20:08 -05:00
XL: Filter out md5Sum from user defined headers (#2962)
This commit is contained in:
parent
fa50312220
commit
b89609dc2e
@ -259,8 +259,14 @@ func (xl xlObjects) getObjectInfo(bucket, object string) (objInfo ObjectInfo, er
|
|||||||
MD5Sum: xlMetaMap["md5Sum"],
|
MD5Sum: xlMetaMap["md5Sum"],
|
||||||
ContentType: xlMetaMap["content-type"],
|
ContentType: xlMetaMap["content-type"],
|
||||||
ContentEncoding: xlMetaMap["content-encoding"],
|
ContentEncoding: xlMetaMap["content-encoding"],
|
||||||
UserDefined: xlMetaMap,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// md5Sum has already been extracted into objInfo.MD5Sum. We
|
||||||
|
// need to remove it from xlMetaMap to avoid it from appearing as
|
||||||
|
// part of response headers. e.g, X-Minio-* or X-Amz-*.
|
||||||
|
|
||||||
|
delete(xlMetaMap, "md5Sum")
|
||||||
|
objInfo.UserDefined = xlMetaMap
|
||||||
return objInfo, nil
|
return objInfo, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user