Skip to content

Commit

Permalink
add missing res.Body.Close()
Browse files Browse the repository at this point in the history
  • Loading branch information
cww0614 committed Nov 24, 2020
1 parent 68e47f1 commit 9aad330
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func Headers(url, refer string) (http.Header, error) {
if err != nil {
return nil, err
}
defer res.Body.Close() // nolint
return res.Header, nil
}

Expand Down

0 comments on commit 9aad330

Please sign in to comment.