Updated io.readall

This commit is contained in:
JimZAH 2024-01-06 11:24:28 +00:00
parent 54d0d5636c
commit 5b42982c3b

View File

@ -3,7 +3,7 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"os"
"strconv"
@ -103,7 +103,7 @@ func nameLookup(config *Config) {
return
}
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return
}