diff --git a/contrib/examples/httpd/genfiles_example/genfiles_example.c b/contrib/examples/httpd/genfiles_example/genfiles_example.c index 95e5bdb7..b96df2a7 100644 --- a/contrib/examples/httpd/genfiles_example/genfiles_example.c +++ b/contrib/examples/httpd/genfiles_example/genfiles_example.c @@ -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 diff --git a/src/apps/http/fs.c b/src/apps/http/fs.c index 27094399..3c9f24d5 100644 --- a/src/apps/http/fs.c +++ b/src/apps/http/fs.c @@ -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;