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:
Björn Ricks 2016-07-13 19:52:58 +02:00
parent d3078c6534
commit 382459ce9b

View File

@ -2776,6 +2776,7 @@ daap_request(struct evhttp_request *req)
/* No authentication for these URIs */ /* No authentication for these URIs */
if ((strcmp(uri, "/server-info") == 0) if ((strcmp(uri, "/server-info") == 0)
|| (strcmp(uri, "/logout") == 0) || (strcmp(uri, "/logout") == 0)
|| (strcmp(uri, "/content-codes") == 0)
|| (strncmp(uri, "/databases/1/items/", strlen("/databases/1/items/")) == 0)) || (strncmp(uri, "/databases/1/items/", strlen("/databases/1/items/")) == 0))
passwd = NULL; passwd = NULL;