mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:43:34 +08:00
Several bugfixes, mostly from Darcy Gong
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5217 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -694,7 +694,7 @@ static inline int httpd_parse(struct httpd_state *pstate)
|
||||
while (state != STATE_BODY);
|
||||
|
||||
#if !defined(CONFIG_NETUTILS_HTTPD_SENDFILE) && !defined(CONFIG_NETUTILS_HTTPD_MMAP)
|
||||
if (0 == strcmp(pstate->ht_filename, "/")
|
||||
if (0 == strcmp(pstate->ht_filename, "/"))
|
||||
{
|
||||
strncpy(pstate->ht_filename, "/" CONFIG_NETUTILS_HTTPD_INDEX, strlen("/" CONFIG_NETUTILS_HTTPD_INDEX));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user