mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-15 22:21:51 +00:00
[patch #9548] Add .json to list of SSI file extensions
Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
parent
76826c1622
commit
84fcd6290e
@ -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 */
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user