[httpd] Remove needless test (always true)

This commit is contained in:
ejurgensen 2023-04-25 23:04:44 +02:00
parent 093708ff97
commit 580ba924a4
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ modules_search(const char *path)
for (ptr = httpd_modules; *ptr; ptr++)
{
m = *ptr;
if (!m->subpaths || !m->request)
if (!m->request)
continue;
for (test = m->subpaths; *test && !is_found; test++)

View File

@ -120,7 +120,7 @@ struct httpd_module
// Null-terminated list of URL subpath that the module accepts e.g., /subpath/morepath/file.mp3
const char *subpaths[16];
// Null-terminated list of URL fullparhs that the module accepts e.g., /fullpath
// Null-terminated list of URL fullpaths that the module accepts e.g., /fullpath
const char *fullpaths[16];
// Pointer to the module's handler definitions
struct httpd_uri_map *handlers;