From 84e23b5b852102d1378ffdc54a47161d2b04dd31 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 10 May 2024 04:39:56 +0400 Subject: [PATCH] Remove an http.Error() func call from an anonym func that is spawned in a separate thread because that w (http.ResponseWriter) could be not available. --- internal/http/dj_handlers.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/http/dj_handlers.go b/internal/http/dj_handlers.go index f9b19a4..60a7826 100644 --- a/internal/http/dj_handlers.go +++ b/internal/http/dj_handlers.go @@ -79,7 +79,6 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) { oggf, err := oggtag.NewOggFile(nxt) if err != nil { log.Println("cannot read an OGG file", nxt, ":", err) - http.Error(w, "cannot read an OGG file", http.StatusInternalServerError) return }