Skip to content

Commit 508606c

Browse files
Desktop: add missing txt file mime type mapping (#3091)
add missing txt file extension to mime type mapping missing mapping caused license dialog that loads txt file to fail and report no network connection
1 parent d9cbf97 commit 508606c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

desktop/src/cef/scheme_handler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ impl<'a> GraphiteFrontendResourceHandler<'a> {
8787
match ext {
8888
"html" => Some("text/html".to_string()),
8989
"css" => Some("text/css".to_string()),
90+
"txt" => Some("text/plain".to_string()),
9091
"wasm" => Some("application/wasm".to_string()),
9192
"js" => Some("application/javascript".to_string()),
9293
"png" => Some("image/png".to_string()),

0 commit comments

Comments
 (0)