fix content type overrides
This commit is contained in:
@@ -114,52 +114,75 @@ function getConType(path) {
|
|||||||
switch (file_ext) {
|
switch (file_ext) {
|
||||||
case "aif":
|
case "aif":
|
||||||
wtv_mime_type = "audio/x-aif";
|
wtv_mime_type = "audio/x-aif";
|
||||||
|
break;
|
||||||
case "aifc":
|
case "aifc":
|
||||||
wtv_mime_type = "audio/x-aifc";
|
wtv_mime_type = "audio/x-aifc";
|
||||||
|
break;
|
||||||
case "aiff":
|
case "aiff":
|
||||||
wtv_mime_type = "audio/x-aiff";
|
wtv_mime_type = "audio/x-aiff";
|
||||||
|
break;
|
||||||
case "ani":
|
case "ani":
|
||||||
wtv_mime_type = "x-wtv-animation";
|
wtv_mime_type = "x-wtv-animation";
|
||||||
|
break;
|
||||||
case "brom":
|
case "brom":
|
||||||
wtv_mime_type = "binary/x-wtv-bootrom";
|
wtv_mime_type = "binary/x-wtv-bootrom";
|
||||||
|
break;
|
||||||
case "cdf":
|
case "cdf":
|
||||||
wtv_mime_type = "application/netcdf";
|
wtv_mime_type = "application/netcdf";
|
||||||
|
break;
|
||||||
case "dat":
|
case "dat":
|
||||||
wtv_mime_type = "binary/cache-data";
|
wtv_mime_type = "binary/cache-data";
|
||||||
|
break;
|
||||||
case "dl":
|
case "dl":
|
||||||
wtv_mime_type = "wtv/download-list";
|
wtv_mime_type = "wtv/download-list";
|
||||||
|
break;
|
||||||
case "gsm":
|
case "gsm":
|
||||||
wtv_mime_type = "audio/x-gsm";
|
wtv_mime_type = "audio/x-gsm";
|
||||||
|
break;
|
||||||
case "gz":
|
case "gz":
|
||||||
wtv_mime_type = "application/gzip";
|
wtv_mime_type = "application/gzip";
|
||||||
|
break;
|
||||||
case "ini":
|
case "ini":
|
||||||
wtv_mime_type = "wtv/jack-configuration";
|
wtv_mime_type = "wtv/jack-configuration";
|
||||||
|
break;
|
||||||
case "mips-code":
|
case "mips-code":
|
||||||
wtv_mime_type = "code/x-wtv-code-mips";
|
wtv_mime_type = "code/x-wtv-code-mips";
|
||||||
|
break;
|
||||||
case "o":
|
case "o":
|
||||||
wtv_mime_type = "binary/x-wtv-approm";
|
wtv_mime_type = "binary/x-wtv-approm";
|
||||||
|
break;
|
||||||
case "ram":
|
case "ram":
|
||||||
wtv_mime_type = "audio/x-pn-realaudio";
|
wtv_mime_type = "audio/x-pn-realaudio";
|
||||||
|
break;
|
||||||
case "rom":
|
case "rom":
|
||||||
wtv_mime_type = "binary/x-wtv-flashblock";
|
wtv_mime_type = "binary/x-wtv-flashblock";
|
||||||
|
break;
|
||||||
case "rsp":
|
case "rsp":
|
||||||
wtv_mime_type = "wtv/jack-response";
|
wtv_mime_type = "wtv/jack-response";
|
||||||
|
break;
|
||||||
case "swa":
|
case "swa":
|
||||||
case "swf":
|
case "swf":
|
||||||
wtv_mime_type = "application/x-shockwave-flash";
|
wtv_mime_type = "application/x-shockwave-flash";
|
||||||
|
break;
|
||||||
case "srf":
|
case "srf":
|
||||||
case "spl":
|
case "spl":
|
||||||
wtv_mime_type = "wtv/jack-data";
|
wtv_mime_type = "wtv/jack-data";
|
||||||
|
break;
|
||||||
case "ttf":
|
case "ttf":
|
||||||
wtv_mime_type = "wtv/jack-fonts";
|
wtv_mime_type = "wtv/jack-fonts";
|
||||||
|
break;
|
||||||
case "tvch":
|
case "tvch":
|
||||||
wtv_mime_type = "wtv/tv-channels";
|
wtv_mime_type = "wtv/tv-channels";
|
||||||
|
break;
|
||||||
case "tvl":
|
case "tvl":
|
||||||
wtv_mime_type = "wtv/tv-listings";
|
wtv_mime_type = "wtv/tv-listings";
|
||||||
|
break;
|
||||||
case "tvsl":
|
case "tvsl":
|
||||||
wtv_mime_type = "wtv/tv-smartlinks";
|
wtv_mime_type = "wtv/tv-smartlinks";
|
||||||
|
break;
|
||||||
case "wad":
|
case "wad":
|
||||||
wtv_mime_type = "binary/doom-data";
|
wtv_mime_type = "binary/doom-data";
|
||||||
|
break;
|
||||||
case "mp2":
|
case "mp2":
|
||||||
case "hsb":
|
case "hsb":
|
||||||
case "rmf":
|
case "rmf":
|
||||||
@@ -167,6 +190,7 @@ function getConType(path) {
|
|||||||
case "mod":
|
case "mod":
|
||||||
case "xm":
|
case "xm":
|
||||||
wtv_mime_type = "application/Music";
|
wtv_mime_type = "application/Music";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
modern_mime_type = mime.lookup(path);
|
modern_mime_type = mime.lookup(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user