D | cgi-server.c | 80 struct lws_cgi *cgi; in lws_cgi() local 87 wsi->http.cgi = lws_zalloc(sizeof(*wsi->http.cgi), "new cgi"); in lws_cgi() 88 if (!wsi->http.cgi) { in lws_cgi() 93 wsi->http.cgi->response_code = HTTP_STATUS_OK; in lws_cgi() 95 cgi = wsi->http.cgi; in lws_cgi() 96 cgi->wsi = wsi; /* set cgi's owning wsi */ in lws_cgi() 97 sum = cgi->summary; in lws_cgi() 98 sumend = sum + strlen(cgi->summary) - 1; in lws_cgi() 107 lwsl_debug("%s: adding cgi %p to list\n", __func__, wsi->http.cgi); in lws_cgi() 108 cgi->cgi_list = pt->http.cgi_list; in lws_cgi() [all …]
|