From 1990f1c7f074efd7c63dfa3ce0f762cf0ad2f525 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 2 Oct 2023 15:03:47 +0400 Subject: [PATCH] In a PlaylistNext handler return a \n character as well. --- internal/http/dj_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/dj_handlers.go b/internal/http/dj_handlers.go index 2e62437..b246451 100644 --- a/internal/http/dj_handlers.go +++ b/internal/http/dj_handlers.go @@ -72,7 +72,7 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) { dj.songList.Add(song) }() } - fmt.Fprint(w, nxt) + fmt.Fprintln(w, nxt) } func (dj *DJHandlers) Song(w http.ResponseWriter, r *http.Request) {