Skip to content

Commit

Permalink
fix: close resp body (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Apr 22, 2024
1 parent 372d492 commit 32b8e24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/filters/validator/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (v *OAuth2Validator) introspectToken(tokenStr string) (*tokenInfo, error) {
if e != nil {
return nil, e
}
defer resp.Body.Close()

var ti struct {
tokenInfo
Expand Down

0 comments on commit 32b8e24

Please sign in to comment.