"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Use "application/octet-stream" if mime.TypeByExtension returns invalid type
Nick Craig-Woodb835330714af
diff --git a/fs/operations.go b/fs/operations.goindex 43a65a077..f320047e8 100644--- a/fs/operations.go+++ b/fs/operations.go@@ -166,7 +166,7 @@ func Equal(src, dst Object) bool {// MimeType returns a guess at the mime type from the extensionfunc MimeType(o Object) string {mimeType := mime.TypeByExtension(path.Ext(o.Remote()))- if mimeType == "" {+ if !strings.ContainsRune(mimeType, '/') {mimeType = "application/octet-stream"}return mimeType