diff --git a/pkg/filters/validator/oauth2.go b/pkg/filters/validator/oauth2.go index cbad351963..95440717ca 100644 --- a/pkg/filters/validator/oauth2.go +++ b/pkg/filters/validator/oauth2.go @@ -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