1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
Nick Craig-Wood
a5863650af fs: Remove the charset from the Mimetype -FIXME EXPERIMENT 2019-01-08 17:22:23 +00:00

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
}