mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 14:09:51 -05:00
Allow anonymous access to /content-codes url
The content-codes url provides a mapping of dmap content codes to names, it's types and sizes. It doesn't contain any private information and therefore should be available to anonymous users too.
This commit is contained in:
@@ -2776,6 +2776,7 @@ daap_request(struct evhttp_request *req)
|
||||
/* No authentication for these URIs */
|
||||
if ((strcmp(uri, "/server-info") == 0)
|
||||
|| (strcmp(uri, "/logout") == 0)
|
||||
|| (strcmp(uri, "/content-codes") == 0)
|
||||
|| (strncmp(uri, "/databases/1/items/", strlen("/databases/1/items/")) == 0))
|
||||
passwd = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user