statObject: Make sure to lowercase file extensions.

This commit is contained in:
Harshavardhana
2016-02-02 17:54:57 -08:00
parent b01594ac33
commit 81fcbd2a54
2 changed files with 3 additions and 3 deletions

View File

@@ -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,