discard errors

This commit is contained in:
Willy Kloucek
2022-11-24 17:07:01 +01:00
parent c6b61cd347
commit 0ba134dbf6

View File

@@ -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)
}
})
}