Update to basic.js and add mime types.

This commit is contained in:
Jm Casler
2020-10-26 18:17:33 -07:00
parent 5981831bc0
commit 44aafd5b9c
2 changed files with 27 additions and 34 deletions

View File

@@ -69,8 +69,9 @@ uint32_t timeSpeedUp = 0;
// We need to specify some content-type mapping, so the resources get delivered with the
// right content type and are displayed correctly in the browser
char contentTypes[][2][32] = {{".txt", "text/plain"}, {".html", "text/html"}, {".js", "text/javascript"},
{".png", "image/png"}, {".jpg", "image/jpg"}, {"", ""}};
char contentTypes[][2][32] = {{".txt", "text/plain"}, {".html", "text/html"}, {".js", "text/javascript"},
{".png", "image/png"}, {".jpg", "image/jpg"}, {".gz", "application/gzip"},
{".gif", "image/gif"}, {".json", "application/json"}, {"", ""}};
void handleWebResponse()
{