content-type fall back to 'application/octet-stream'

This commit is contained in:
zefie
2021-08-15 17:56:37 -04:00
parent 7b0200eac8
commit daf6ec9339

View File

@@ -195,6 +195,7 @@ class WTVMime {
}
modern_mime_type = this.mime.lookup(path);
if (modern_mime_type === false) modern_mime_type = "application/octet-stream";
if (wtv_mime_type == "") wtv_mime_type = modern_mime_type;
return new Array(wtv_mime_type, modern_mime_type);
}