提交 545b62b8 编写于 作者: D Dick van den Brink

Fixed mime-type detection because of different capitalization

fixes #770
上级 1ebaa4f0
......@@ -79,7 +79,7 @@ export class ResourceViewer {
let mime: string;
const ext = paths.extname(resource.toString());
if (ext) {
mime = mapExtToMediaMimes[ext];
mime = mapExtToMediaMimes[ext.toLowerCase()];
}
if (!mime) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册