mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-01 05:15:50 +00:00
move HTTP contentTypes to Flash - saves 768 Bytes of RAM (#8055)
This commit is contained in:
parent
db2f79b6c4
commit
6a3b2ceafe
@ -55,7 +55,7 @@ HTTPClient httpClient;
|
|||||||
|
|
||||||
// We need to specify some content-type mapping, so the resources get delivered with the
|
// 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
|
// right content type and are displayed correctly in the browser
|
||||||
char contentTypes[][2][32] = {{".txt", "text/plain"}, {".html", "text/html"},
|
char const *contentTypes[][2] = {{".txt", "text/plain"}, {".html", "text/html"},
|
||||||
{".js", "text/javascript"}, {".png", "image/png"},
|
{".js", "text/javascript"}, {".png", "image/png"},
|
||||||
{".jpg", "image/jpg"}, {".gz", "application/gzip"},
|
{".jpg", "image/jpg"}, {".gz", "application/gzip"},
|
||||||
{".gif", "image/gif"}, {".json", "application/json"},
|
{".gif", "image/gif"}, {".json", "application/json"},
|
||||||
|
Loading…
Reference in New Issue
Block a user