Skip to content

Commit

Permalink
auth: requestToken close response body
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Larsson <[email protected]>
  • Loading branch information
johanneslarsson authored and ashutosh-narkar committed Apr 23, 2024
1 parent 8260697 commit 8d62a72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/rest/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ func (ap *oauth2ClientCredentialsAuthPlugin) requestToken(ctx context.Context) (
if err != nil {
return nil, err
}
defer response.Body.Close()

bodyRaw, err := io.ReadAll(response.Body)
if err != nil {
Expand Down

0 comments on commit 8d62a72

Please sign in to comment.