forked from TrueCloudLab/rclone
fs: Remove the charset from the Mimetype -FIXME EXPERIMENT
This commit is contained in:
parent
2d2533a08a
commit
a5863650af
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue