Skip to content

Commit c82b89c

Browse files
committed
Merge remote-tracking branch 'origin/plugins' into plugins
2 parents ef94ba4 + 00a244c commit c82b89c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func SendAPIRequest(r *http.Request) []byte {
3333
client := &http.Client{Timeout: 10 * time.Second}
3434
resp, err := client.Do(r)
3535
CheckError(err)
36+
defer resp.Body.Close()
3637

3738
body, err := io.ReadAll(resp.Body)
3839
CheckError(err)

0 commit comments

Comments
 (0)