mirror of
https://github.com/minio/minio.git
synced 2025-11-22 02:35:30 -05:00
statObject: Make sure to lowercase file extensions.
This commit is contained in:
@@ -435,7 +435,7 @@ func (fs Filesystem) CompleteMultipartUpload(bucket, object, uploadID string, da
|
||||
}
|
||||
contentType := "application/octet-stream"
|
||||
if objectExt := filepath.Ext(objectPath); objectExt != "" {
|
||||
contentType = contentdb.MustLookup(strings.TrimPrefix(objectExt, "."))
|
||||
contentType = contentdb.MustLookup(strings.ToLower(strings.TrimPrefix(objectExt, ".")))
|
||||
}
|
||||
newObject := ObjectMetadata{
|
||||
Bucket: bucket,
|
||||
|
||||
Reference in New Issue
Block a user