Skip to content

Commit

Permalink
fix(server): 🐛 close response body
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 14, 2023
1 parent e6aa518 commit dcc7678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ func main() {

url.Path = "files/" + e.Record.Id

_, err = http.Post(url.String(), "application/json", nil)
resp, err := http.Post(url.String(), "application/json", nil)
resp.Body.Close()

if err != nil {
log.Println(err)
Expand Down

0 comments on commit dcc7678

Please sign in to comment.