Skip to content

Commit

Permalink
[ios] Fix crash on downloading invoices
Browse files Browse the repository at this point in the history
Fix #7160
  • Loading branch information
charlag committed Aug 16, 2024
1 parent 2a86ed8 commit a5049ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-ios/tutanota/Sources/CustomSchemeHandlers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class AssetSchemeHandler: NSObject, WKURLSchemeHandler {
return "application/application/vnd.iccprofile"
} else if let mimeType = getFileMIMEType(path: path) {
return mimeType
} else if path.hasSuffix(".cmap") {
return "text/plain" // used for invoices; no good mime type for cmap, so just use plain text
} else {
fatalError("Unknown asset type! \(path)")
}
Expand Down

0 comments on commit a5049ef

Please sign in to comment.