diff --git a/src/httpd.c b/src/httpd.c index 8a5087bf..66354385 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -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++) diff --git a/src/httpd_internal.h b/src/httpd_internal.h index 0157601e..60b45e91 100644 --- a/src/httpd_internal.h +++ b/src/httpd_internal.h @@ -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;