This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1392,6 +1392,8 @@ public static class MimeTypes
1392
1392
public const string JavaScript = "text/javascript" ;
1393
1393
public const string WebAssembly = "application/wasm" ;
1394
1394
public const string Jar = "application/java-archive" ;
1395
+ public const string Dmg = "application/x-apple-diskimage" ;
1396
+ public const string Pkg = "application/x-newton-compatible-pkg" ;
1395
1397
1396
1398
public const string FormUrlEncoded = "application/x-www-form-urlencoded" ;
1397
1399
public const string MultiPartFormData = "multipart/form-data" ;
@@ -1517,6 +1519,8 @@ public static bool IsBinary(string contentType)
1517
1519
case Compressed :
1518
1520
case WebAssembly :
1519
1521
case Jar :
1522
+ case Dmg :
1523
+ case Pkg :
1520
1524
return true ;
1521
1525
}
1522
1526
@@ -1804,6 +1808,11 @@ public static string GetMimeType(string fileNameOrExt)
1804
1808
1805
1809
case "wasm" :
1806
1810
return WebAssembly ;
1811
+
1812
+ case "dmg" :
1813
+ return Dmg ;
1814
+ case "pkg" :
1815
+ return Pkg ;
1807
1816
1808
1817
default :
1809
1818
return "application/" + fileExt ;
You can’t perform that action at this time.
0 commit comments