mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
[httpd] Remove needless test (always true)
This commit is contained in:
parent
093708ff97
commit
580ba924a4
@ -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++)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user