From 382459ce9b1c31a0b0ddba96e0bcb62bb353b3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Wed, 13 Jul 2016 19:52:58 +0200 Subject: [PATCH] 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. --- src/httpd_daap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 5f2b0dc9..c985a586 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -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;