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:
Kirill Osenkov 2020-06-05 13:21:31 -07:00 committed by GitHub
parent dc0a3e01b7
commit 0e7ca749de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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" },