Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d3f474c

Browse files
committed
Add .jar Mimetype
1 parent 4602401 commit d3f474c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceStack.Text/HttpUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,7 @@ public static class MimeTypes
13911391
public const string ProtoBuf = "application/x-protobuf";
13921392
public const string JavaScript = "text/javascript";
13931393
public const string WebAssembly = "application/wasm";
1394+
public const string Jar = "application/java-archive";
13941395

13951396
public const string FormUrlEncoded = "application/x-www-form-urlencoded";
13961397
public const string MultiPartFormData = "multipart/form-data";
@@ -1515,6 +1516,7 @@ public static bool IsBinary(string contentType)
15151516
case MsWord:
15161517
case Compressed:
15171518
case WebAssembly:
1519+
case Jar:
15181520
return true;
15191521
}
15201522

@@ -1717,6 +1719,9 @@ public static string GetMimeType(string fileNameOrExt)
17171719
return "application/font-woff";
17181720
case "woff2":
17191721
return "application/font-woff2";
1722+
1723+
case "jar":
1724+
return Jar;
17201725

17211726
case "aaf":
17221727
case "aca":

0 commit comments

Comments
 (0)