fix: defer close raw response body

This commit is contained in:
httpjamesm 2023-02-14 20:16:30 -05:00
parent 64302c9334
commit 0968932eff
No known key found for this signature in database

View File

@ -64,6 +64,7 @@ func ViewQuestion(c *gin.Context) {
})
return
}
defer resp.RawResponse.Body.Close()
if resp.StatusCode() != 200 {
c.HTML(500, "home.html", gin.H{