From 2675d718b8e9188e3667ec318719b4e32a79ba48 Mon Sep 17 00:00:00 2001 From: guangwu Date: Mon, 22 Apr 2024 09:34:01 +0800 Subject: [PATCH] fix: close resp body --- pkg/filters/validator/oauth2.go | 1 + 1 file changed, 1 insertion(+) 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