aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/filetransport_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http/filetransport_test.go')
-rw-r--r--src/net/http/filetransport_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/http/filetransport_test.go b/src/net/http/filetransport_test.go
index 2a2f32c769..fdfd44d967 100644
--- a/src/net/http/filetransport_test.go
+++ b/src/net/http/filetransport_test.go
@@ -5,6 +5,7 @@
package http
import (
+ "io"
"io/ioutil"
"os"
"path/filepath"
@@ -48,7 +49,7 @@ func TestFileTransport(t *testing.T) {
if res.Body == nil {
t.Fatalf("for %s, nil Body", urlstr)
}
- slurp, err := ioutil.ReadAll(res.Body)
+ slurp, err := io.ReadAll(res.Body)
res.Body.Close()
check("ReadAll "+urlstr, err)
if string(slurp) != "Bar" {