httpd: follow-up to previous commit

see bug #59876
This commit is contained in:
Mike Kleshov 2021-01-28 19:53:57 +03:00
parent 69725292a0
commit 9b040624c0
2 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,9 @@
#if !LWIP_HTTPD_CUSTOM_FILES
#error This needs LWIP_HTTPD_CUSTOM_FILES
#endif
#if !LWIP_HTTPD_FILE_EXTENSION
#error This needs LWIP_HTTPD_FILE_EXTENSION
#endif
#if !LWIP_HTTPD_DYNAMIC_HEADERS
#error This needs LWIP_HTTPD_DYNAMIC_HEADERS
#endif

View File

@ -74,7 +74,6 @@ fs_open(struct fs_file *file, const char *name)
file->data = (const char *)f->data;
file->len = f->len;
file->index = f->len;
file->pextension = NULL;
file->flags = f->flags;
#if HTTPD_PRECALCULATED_CHECKSUM
file->chksum_count = f->chksum_count;