aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/httptest/httptest.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http/httptest/httptest.go')
-rw-r--r--src/net/http/httptest/httptest.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/http/httptest/httptest.go b/src/net/http/httptest/httptest.go
index f7202da92f..9bedefd2bc 100644
--- a/src/net/http/httptest/httptest.go
+++ b/src/net/http/httptest/httptest.go
@@ -10,7 +10,6 @@ import (
"bytes"
"crypto/tls"
"io"
- "io/ioutil"
"net/http"
"strings"
)
@@ -66,7 +65,7 @@ func NewRequest(method, target string, body io.Reader) *http.Request {
if rc, ok := body.(io.ReadCloser); ok {
req.Body = rc
} else {
- req.Body = ioutil.NopCloser(body)
+ req.Body = io.NopCloser(body)
}
}