From 0ba134dbf601fdf047c9552f1b163d60ccf36c2e Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Thu, 24 Nov 2022 17:07:01 +0100 Subject: [PATCH] discard errors --- services/proxy/pkg/middleware/authentication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/proxy/pkg/middleware/authentication.go b/services/proxy/pkg/middleware/authentication.go index ebd6a2a0ec..4a436cb3a9 100644 --- a/services/proxy/pkg/middleware/authentication.go +++ b/services/proxy/pkg/middleware/authentication.go @@ -113,7 +113,7 @@ func Authentication(auths []Authenticator, opts ...Option) func(next http.Handle // https://github.com/golang/go/issues/15527 defer r.Body.Close() - io.Copy(ioutil.Discard, r.Body) + _, _ = io.Copy(ioutil.Discard, r.Body) } }) }