[patch #9548] Add .json to list of SSI file extensions

Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
Mike Kleshov 2018-01-22 19:49:10 +01:00 committed by goldsimon
parent 76826c1622
commit 84fcd6290e
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ static const tHTTPHeader g_psHTTPHeaders[] = {
#if LWIP_HTTPD_SSI
static const char *const g_pcSSIExtensions[] = {
".shtml", ".shtm", ".ssi", ".xml"
".shtml", ".shtm", ".ssi", ".xml", ".json"
};
#define NUM_SHTML_EXTENSIONS LWIP_ARRAYSIZE(g_pcSSIExtensions)
#endif /* LWIP_HTTPD_SSI */

View File

@ -125,7 +125,7 @@ extern void httpd_cgi_handler(const char* uri, int iNumParams, char **pcParam, c
*
* This function will be called each time the HTTPD server detects a tag of the
* form <!--#name--> in files with extensions mentioned in the g_pcSSIExtensions
* array (currently .shtml, .shtm, .ssi, .xml) where "name" appears as
* array (currently .shtml, .shtm, .ssi, .xml, .json) where "name" appears as
* one of the tags supplied to http_set_ssi_handler in the tags array. The
* returned insert string, which will be appended after the the string
* "<!--#name-->" in file sent back to the client, should be written to pointer