Added MIME Types
Added the following MIME types which I have found to be missing: .json - application/json (This one is pretty unbelievable) .ttc - application/x-font-ttf .webp - image/webp .appcache - text/cache-manifest .manifest - text/cache-manifest Also the following MIME types need updating: .ttf should be application/x-font-ttf and not application/octet-stream
This commit is contained in:
parent
2981bb281b
commit
545fa9e70a
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FileExtensionContentTypeProvider : IContentTypeProvider
|
public class FileExtensionContentTypeProvider : IContentTypeProvider
|
||||||
{
|
{
|
||||||
#region Extension mapping table
|
#region Extension mapping table
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new provider with a set of default mappings.
|
/// Creates a new provider with a set of default mappings.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -38,6 +38,7 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
{ ".aif", "audio/x-aiff" },
|
{ ".aif", "audio/x-aiff" },
|
||||||
{ ".aifc", "audio/aiff" },
|
{ ".aifc", "audio/aiff" },
|
||||||
{ ".aiff", "audio/aiff" },
|
{ ".aiff", "audio/aiff" },
|
||||||
|
{ ".appcache", "text/cache-manifest" },
|
||||||
{ ".application", "application/x-ms-application" },
|
{ ".application", "application/x-ms-application" },
|
||||||
{ ".art", "image/x-jg" },
|
{ ".art", "image/x-jg" },
|
||||||
{ ".asd", "application/octet-stream" },
|
{ ".asd", "application/octet-stream" },
|
||||||
|
|
@ -143,6 +144,7 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
{ ".jpeg", "image/jpeg" },
|
{ ".jpeg", "image/jpeg" },
|
||||||
{ ".jpg", "image/jpeg" },
|
{ ".jpg", "image/jpeg" },
|
||||||
{ ".js", "application/javascript" },
|
{ ".js", "application/javascript" },
|
||||||
|
{ ".json", "application/json" },
|
||||||
{ ".jsx", "text/jscript" },
|
{ ".jsx", "text/jscript" },
|
||||||
{ ".latex", "application/x-latex" },
|
{ ".latex", "application/x-latex" },
|
||||||
{ ".lit", "application/x-ms-reader" },
|
{ ".lit", "application/x-ms-reader" },
|
||||||
|
|
@ -310,7 +312,8 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
{ ".trm", "application/x-msterminal" },
|
{ ".trm", "application/x-msterminal" },
|
||||||
{ ".ts", "video/vnd.dlna.mpeg-tts" },
|
{ ".ts", "video/vnd.dlna.mpeg-tts" },
|
||||||
{ ".tsv", "text/tab-separated-values" },
|
{ ".tsv", "text/tab-separated-values" },
|
||||||
{ ".ttf", "application/octet-stream" },
|
{ ".ttc", "application/x-font-ttf" },
|
||||||
|
{ ".ttf", "application/x-font-ttf" },
|
||||||
{ ".tts", "video/vnd.dlna.mpeg-tts" },
|
{ ".tts", "video/vnd.dlna.mpeg-tts" },
|
||||||
{ ".txt", "text/plain" },
|
{ ".txt", "text/plain" },
|
||||||
{ ".u32", "application/octet-stream" },
|
{ ".u32", "application/octet-stream" },
|
||||||
|
|
@ -334,6 +337,7 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
{ ".wcm", "application/vnd.ms-works" },
|
{ ".wcm", "application/vnd.ms-works" },
|
||||||
{ ".wdb", "application/vnd.ms-works" },
|
{ ".wdb", "application/vnd.ms-works" },
|
||||||
{ ".webm", "video/webm" },
|
{ ".webm", "video/webm" },
|
||||||
|
{ ".webp", "image/webp" },
|
||||||
{ ".wks", "application/vnd.ms-works" },
|
{ ".wks", "application/vnd.ms-works" },
|
||||||
{ ".wm", "video/x-ms-wm" },
|
{ ".wm", "video/x-ms-wm" },
|
||||||
{ ".wma", "audio/x-ms-wma" },
|
{ ".wma", "audio/x-ms-wma" },
|
||||||
|
|
@ -393,7 +397,7 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a lookup engine using the provided mapping.
|
/// Creates a lookup engine using the provided mapping.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue