Skip to content

Commit 0e7ca74

Browse files
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 <[email protected]> * Update src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs Co-authored-by: Chris Ross <[email protected]> Co-authored-by: Chris Ross <[email protected]>
1 parent dc0a3e0 commit 0e7ca74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public FileExtensionContentTypeProvider()
104104
{ ".eps", "application/postscript" },
105105
{ ".etx", "text/x-setext" },
106106
{ ".evy", "application/envoy" },
107+
{ ".exe", "application/vnd.microsoft.portable-executable" }, // https://www.iana.org/assignments/media-types/application/vnd.microsoft.portable-executable
107108
{ ".fdf", "application/vnd.fdf" },
108109
{ ".fif", "application/fractals" },
109110
{ ".fla", "application/octet-stream" },

0 commit comments

Comments
 (0)