From 1665fcba83d546d744ea710db4b3d936537a1e40 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 13 Nov 2017 21:18:15 +0100 Subject: [PATCH] httpd: LWIP_HTTPD_CGI_SSI: complete unfinished documentation for httpd_cgi_handler() --- src/include/lwip/apps/httpd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/apps/httpd.h b/src/include/lwip/apps/httpd.h index efa20862..07fca4b7 100644 --- a/src/include/lwip/apps/httpd.h +++ b/src/include/lwip/apps/httpd.h @@ -102,7 +102,9 @@ void http_set_cgi_handlers(const tCGI *pCGIs, int iNumHandlers); #if LWIP_HTTPD_CGI_SSI /** Define this generic CGI handler in your application. * It is called once for every URI with parameters. - * The parameters can be stored to + * The parameters can be stored to the object passed as connection_state, which + * is allocated to file->state via fs_state_init() from fs_open() or fs_open_custom(). + * Content creation via SSI or complete dynamic files can retrieve the CGI params from there. */ extern void httpd_cgi_handler(const char* uri, int iNumParams, char **pcParam, char **pcValue #if defined(LWIP_HTTPD_FILE_STATE) && LWIP_HTTPD_FILE_STATE