content-type fall back to 'application/octet-stream'
This commit is contained in:
@@ -195,6 +195,7 @@ class WTVMime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
modern_mime_type = this.mime.lookup(path);
|
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;
|
if (wtv_mime_type == "") wtv_mime_type = modern_mime_type;
|
||||||
return new Array(wtv_mime_type, modern_mime_type);
|
return new Array(wtv_mime_type, modern_mime_type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user