Browse Source

httpd: add .json media type

H. Peter Anvin 2 years ago
parent
commit
ddcbee4a31
4 changed files with 1 additions and 0 deletions
  1. 1 0
      esp32/max80/httpd.c
  2. BIN
      esp32/output/max80.ino.bin
  3. BIN
      fpga/output/v1.fw
  4. BIN
      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"  },

BIN
esp32/output/max80.ino.bin


BIN
fpga/output/v1.fw


BIN
fpga/output/v2.fw