]> git.feebdaed.xyz Git - 0xmirror/civetweb.git/commitdiff
Add X509 certificate and CRL MIME-types
authorAbra Mixabra <46976171+abra-mixabra@users.noreply.github.com>
Sun, 2 Mar 2025 18:44:35 +0000 (18:44 +0000)
committerGitHub <noreply@github.com>
Sun, 2 Mar 2025 18:44:35 +0000 (18:44 +0000)
Add the following MIME types:
- application/pkix-cert
- application/pkix-crl
- application/x-pem-file

src/civetweb.c

index 2ee166cfb8fef7267d1459efefac9aa67d17cf44..30bf430ca569cb9f19bcca35317d34091b50846d 100644 (file)
@@ -8511,6 +8511,9 @@ static const struct {
      * (http://www.iana.org/assignments/media-types)
      * application types */
     {".bin", 4, "application/octet-stream"},
+    {".cer", 4, "application/pkix-cert"},
+    {".crl", 4, "application/pkix-crl"},
+    {".crt", 4, "application/pkix-cert"},
     {".deb", 4, "application/octet-stream"},
     {".dmg", 4, "application/octet-stream"},
     {".dll", 4, "application/octet-stream"},
@@ -8522,6 +8525,7 @@ static const struct {
     {".json", 5, "application/json"},
     {".mjs", 4, "application/javascript"},
     {".msi", 4, "application/octet-stream"},
+    {".pem", 4, "application/x-pem-file"},
     {".pdf", 4, "application/pdf"},
     {".ps", 3, "application/postscript"},
     {".rtf", 4, "application/rtf"},