Fix DevTools crash due to unknown .md mime type (fixes issue #3278)

This commit is contained in:
Marshall Greenblatt 2022-03-15 13:06:58 -04:00
parent 3474e7abc1
commit 8fc6aced6c
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ std::string GetMimeType(const std::string& filename) {
// Check for newer extensions used by internal resources but not yet
// recognized by the mime type detector.
const std::string& extension = CefString(file_path.FinalExtension());
if (extension == ".md")
return "text/markdown";
if (extension == ".woff2")
return "application/font-woff2";