Replace deprecated iotuil.ReadAll with io.ReadAll (#6678)

Per [1]: 
> Deprecated: As of Go 1.16, this function (ioutil.ReadAll) simply calls
io.ReadAll.

1. https://pkg.go.dev/io/ioutil#ReadAll
This commit is contained in:
Phil Porada 2023-02-21 14:07:55 -05:00 committed by GitHub
parent 6c84a69043
commit 365c9af463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
package probers
import (
"io/ioutil"
"io"
"net/http"
"time"
@ -36,7 +36,7 @@ func (p CRLProbe) Probe(timeout time.Duration) (bool, time.Duration) {
return false, time.Since(start)
}
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return false, time.Since(start)
}