From e7d6fdab691af18244eda8e1eb1ce0f55e6000d1 Mon Sep 17 00:00:00 2001 From: beta Date: Sat, 9 Sep 2023 09:37:36 -0700 Subject: [PATCH] Fixed bug where two requests got merged --- server/ctrlsubsonic/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/ctrlsubsonic/middleware.go b/server/ctrlsubsonic/middleware.go index a7e72d8..c0810fb 100644 --- a/server/ctrlsubsonic/middleware.go +++ b/server/ctrlsubsonic/middleware.go @@ -193,6 +193,7 @@ func (c *Controller) WithUser(next http.Handler) http.Handler { if err == nil { withUser := context.WithValue(r.Context(), CtxUser, user) next.ServeHTTP(w, r.WithContext(withUser)) + return } }