fix: close body response after serving client

This commit is contained in:
rramiachraf 2023-03-01 19:38:02 +01:00
parent 19558ec25f
commit d2e0713ceb

View File

@ -91,6 +91,8 @@ func lyricsHandler(w http.ResponseWriter, r *http.Request) {
return
}
defer resp.Body.Close()
if resp.StatusCode == http.StatusNotFound {
w.WriteHeader(http.StatusNotFound)
render("error", w, map[string]string{