1
0

In ListenersDec() handler added a missing return.

This commit is contained in:
Alexander Andreev 2023-10-02 18:09:25 +04:00
parent 0bf81f93c8
commit 98ed4035a7
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -42,6 +42,7 @@ func (dj *DJHandlers) ListenersDec(w http.ResponseWriter, _ *http.Request) {
if err != nil { if err != nil {
log.Print(err) log.Print(err)
http.Error(w, err.Error(), http.StatusBadRequest) http.Error(w, err.Error(), http.StatusBadRequest)
return
} }
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)
w.Header().Add("Content-Type", "text/plain") w.Header().Add("Content-Type", "text/plain")