Skip to content

Commit

Permalink
[android] Fix crash when downloading cmap on invoice
Browse files Browse the repository at this point in the history
It seems we did not specify the mime type for .cmap extensions, thus
downloading invoices can result in an uncaught exception.

Fixes #7235
Fixes #7160
  • Loading branch information
paw-hub committed Aug 2, 2024
1 parent d8c32e0 commit 23587e3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ class MainActivity : FragmentActivity() {
"ttf" -> "font/ttf"
"wasm" -> "application/wasm"
"icc" -> "application/vnd.iccprofile"
"cmap" -> "text/plain" // used for invoices; no good mime type for cmap, so just use plain text
else -> error("Unknown extension $ext for url $url")
}
}
Expand Down

0 comments on commit 23587e3

Please sign in to comment.