From 98ed4035a7d2a6bf0ad1797317162b3eb5d1b4ef Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 2 Oct 2023 18:09:25 +0400 Subject: [PATCH] In ListenersDec() handler added a missing return. --- internal/http/dj_handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/http/dj_handlers.go b/internal/http/dj_handlers.go index be522e5..5045f43 100644 --- a/internal/http/dj_handlers.go +++ b/internal/http/dj_handlers.go @@ -42,6 +42,7 @@ func (dj *DJHandlers) ListenersDec(w http.ResponseWriter, _ *http.Request) { if err != nil { log.Print(err) http.Error(w, err.Error(), http.StatusBadRequest) + return } w.WriteHeader(http.StatusOK) w.Header().Add("Content-Type", "text/plain")