fix: defer close raw response body
This commit is contained in:
parent
64302c9334
commit
0968932eff
@ -64,6 +64,7 @@ func ViewQuestion(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
defer resp.RawResponse.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode() != 200 {
|
if resp.StatusCode() != 200 {
|
||||||
c.HTML(500, "home.html", gin.H{
|
c.HTML(500, "home.html", gin.H{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user