From a69e9f389385d09ff5be19167a6e5d251605fb44 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Mon, 12 Apr 2021 10:46:29 +0300 Subject: [PATCH] add playlist to non auth --- server/web/auth/auth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/web/auth/auth.go b/server/web/auth/auth.go index 4aae796..db29439 100644 --- a/server/web/auth/auth.go +++ b/server/web/auth/auth.go @@ -63,7 +63,8 @@ func BasicAuth(accounts gin.Accounts) gin.HandlerFunc { return func(c *gin.Context) { user, found := pairs.searchCredential(c.Request.Header.Get("Authorization")) if !found { - if strings.HasPrefix(c.FullPath(), "/stream") { + if strings.HasPrefix(c.FullPath(), "/stream") || + strings.HasPrefix(c.FullPath(), "/playlist") { c.Set("not_auth", true) return }