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 <johannes.a.larsson@gmail.com>
  • Loading branch information
johanneslarsson authored and ashutosh-narkar committed Apr 23, 2024
1 parent 8260697 commit ef8532f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/rest/auth.go
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 ef8532f

Please sign in to comment.