In ListenersDec() handler added a missing return.
This commit is contained in:
parent
0bf81f93c8
commit
98ed4035a7
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user