fix: close body response after serving client
This commit is contained in:
parent
19558ec25f
commit
d2e0713ceb
@ -91,6 +91,8 @@ func lyricsHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode == http.StatusNotFound {
|
if resp.StatusCode == http.StatusNotFound {
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
render("error", w, map[string]string{
|
render("error", w, map[string]string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user