Add a Mime Type for .exe and .dll files. (#21805)
* Add a Mime Type for .exe and .dll files. Useful for serving downloads of installers. Could be application/octet-stream, but I hear application/vnd.microsoft.portable-executable is specified by IANA here: https://www.iana.org/assignments/media-types/application/vnd.microsoft.portable-executable * Update src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs Co-authored-by: Chris Ross <Tratcher@Outlook.com> * Update src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs Co-authored-by: Chris Ross <Tratcher@Outlook.com> Co-authored-by: Chris Ross <Tratcher@Outlook.com>
This commit is contained in:
parent
dc0a3e01b7
commit
0e7ca749de
|
|
@ -104,6 +104,7 @@ namespace Microsoft.AspNetCore.StaticFiles
|
|||
{ ".eps", "application/postscript" },
|
||||
{ ".etx", "text/x-setext" },
|
||||
{ ".evy", "application/envoy" },
|
||||
{ ".exe", "application/vnd.microsoft.portable-executable" }, // https://www.iana.org/assignments/media-types/application/vnd.microsoft.portable-executable
|
||||
{ ".fdf", "application/vnd.fdf" },
|
||||
{ ".fif", "application/fractals" },
|
||||
{ ".fla", "application/octet-stream" },
|
||||
|
|
|
|||
Loading…
Reference in New Issue