fs: Remove the charset from the Mimetype -FIXME EXPERIMENT

This commit is contained in:
Nick Craig-Wood 2019-01-08 17:22:23 +00:00
parent 2d2533a08a
commit a5863650af
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ func MimeTypeFromName(remote string) (mimeType string) {
if !strings.ContainsRune(mimeType, '/') {
mimeType = "application/octet-stream"
}
mimeType = strings.Replace(mimeType, "; charset=utf-8", "", -1) // Remove charset
return mimeType
}