Skip to content

Commit

Permalink
Allow unauthenticated ping requests
Browse files Browse the repository at this point in the history
Some player such as play:Sub are making unauthenticated ping requests
before login. If the requests dont succeed then then they refuse to
work.
  • Loading branch information
ironsmile committed Aug 11, 2024
1 parent 5cf64aa commit 2bc63b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webserver/subsonic/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (s *subsonic) authHandler(handler http.Handler) http.Handler {
return
}

if !s.needsAuth {
if !s.needsAuth || r.URL.Path == "/rest/ping.view" {
handler.ServeHTTP(w, r)
return
}
Expand Down

0 comments on commit 2bc63b9

Please # to comment.