diff options
Diffstat (limited to 'hugolib/resource_chain_test.go')
-rw-r--r-- | hugolib/resource_chain_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/resource_chain_test.go b/hugolib/resource_chain_test.go index 6249c0aad..823f7db45 100644 --- a/hugolib/resource_chain_test.go +++ b/hugolib/resource_chain_test.go @@ -16,7 +16,6 @@ package hugolib import ( "fmt" "io" - "io/ioutil" "math/rand" "net/http" "net/http/httptest" @@ -305,7 +304,7 @@ func TestResourceChains(t *testing.T) { case "/post": w.Header().Set("Content-Type", "text/plain") if r.Method == http.MethodPost { - body, err := ioutil.ReadAll(r.Body) + body, err := io.ReadAll(r.Body) if err != nil { http.Error(w, "Internal server error", http.StatusInternalServerError) return |