1
0

In a PlaylistNext handler return a \n character as well.

This commit is contained in:
Alexander Andreev 2023-10-02 15:03:47 +04:00
parent 29714b30ca
commit 1990f1c7f0
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -72,7 +72,7 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) {
dj.songList.Add(song) dj.songList.Add(song)
}() }()
} }
fmt.Fprint(w, nxt) fmt.Fprintln(w, nxt)
} }
func (dj *DJHandlers) Song(w http.ResponseWriter, r *http.Request) { func (dj *DJHandlers) Song(w http.ResponseWriter, r *http.Request) {