mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix DevTools crash due to unknown .md mime type (fixes issue #3278)
This commit is contained in:
@@ -42,6 +42,8 @@ std::string GetMimeType(const std::string& filename) {
|
|||||||
// Check for newer extensions used by internal resources but not yet
|
// Check for newer extensions used by internal resources but not yet
|
||||||
// recognized by the mime type detector.
|
// recognized by the mime type detector.
|
||||||
const std::string& extension = CefString(file_path.FinalExtension());
|
const std::string& extension = CefString(file_path.FinalExtension());
|
||||||
|
if (extension == ".md")
|
||||||
|
return "text/markdown";
|
||||||
if (extension == ".woff2")
|
if (extension == ".woff2")
|
||||||
return "application/font-woff2";
|
return "application/font-woff2";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user