Jelajahi Sumber

httpd: add .json media type

H. Peter Anvin 3 tahun lalu
induk
melakukan
ddcbee4a31
4 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      esp32/max80/httpd.c
  2. TEMPAT SAMPAH
      esp32/output/max80.ino.bin
  3. TEMPAT SAMPAH
      fpga/output/v1.fw
  4. TEMPAT SAMPAH
      fpga/output/v2.fw

+ 1 - 0
esp32/max80/httpd.c

@@ -70,6 +70,7 @@ static const struct mime_type mime_types[] = {
     { ".pdf",   4, "application/pdf"           },
     { ".js",    3, "text/javascript"           },
     { ".mjs",   4, "text/javascript"           },
+    { ".json",  5, "application/json"          },
     { ".xml",   4, "text/xml"                  },
     { ".bin",   4, "application/octet-stream"  },
     { ".fw",    3, "application/octet-stream"  },

TEMPAT SAMPAH
esp32/output/max80.ino.bin


TEMPAT SAMPAH
fpga/output/v1.fw


TEMPAT SAMPAH
fpga/output/v2.fw