一定要discard headers么?
Author: vmjieCreated Mar 29, 2017Updated May 6, 2022
sprintf(path, "htdocs%s", url); if (path[strlen(path) - 1] == '/') strcat(path, "index.html"); if (stat(path, &st) == -1) { while ((numchars > 0) && strcmp("\n", buf)) /* read & discard headers */ numchars = get_line(client, buf, sizeof(buf)); not_found(client); } 这里discard headers是一定需要的么?
Source: EZLippi/Tinyhttpd