Skip to content

Commit 595f11b

Browse files
committed
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
1 parent b3c6c43 commit 595f11b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public FileExtensionContentTypeProvider()
8484
{ ".dib", "image/bmp" },
8585
{ ".dir", "application/x-director" },
8686
{ ".disco", "text/xml" },
87+
{ ".dll", "application/vnd.microsoft.portable-executable" },
8788
{ ".dlm", "text/dlm" },
8889
{ ".doc", "application/msword" },
8990
{ ".docm", "application/vnd.ms-word.document.macroEnabled.12" },
@@ -104,6 +105,7 @@ public FileExtensionContentTypeProvider()
104105
{ ".eps", "application/postscript" },
105106
{ ".etx", "text/x-setext" },
106107
{ ".evy", "application/envoy" },
108+
{ ".exe", "application/vnd.microsoft.portable-executable" },
107109
{ ".fdf", "application/vnd.fdf" },
108110
{ ".fif", "application/fractals" },
109111
{ ".fla", "application/octet-stream" },

0 commit comments

Comments
 (0)