Ver Fonte

Merge pull request #1329 from abra-mixabra/patch-1

Add X509 certificate and CRL MIME-types
bel2125 há 2 meses atrás
pai
commit
85d361d85d
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      src/civetweb.c

+ 4 - 0
src/civetweb.c

@@ -8519,6 +8519,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"},
@@ -8530,6 +8533,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"},