mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-20 22:09:15 +00:00
fix: defer close raw response body
This commit is contained in:
parent
64302c9334
commit
0968932eff
1 changed files with 1 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Reference in a new issue