mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 18:31:10 +08:00
fs: Remove the charset from the Mimetype -FIXME EXPERIMENT
This commit is contained in:
parent
2d2533a08a
commit
a5863650af
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user