diff options
Diffstat (limited to 'src/lib/net/dialgoogle_test.go')
-rw-r--r-- | src/lib/net/dialgoogle_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/net/dialgoogle_test.go b/src/lib/net/dialgoogle_test.go index 684439d0b..86ef5b91e 100644 --- a/src/lib/net/dialgoogle_test.go +++ b/src/lib/net/dialgoogle_test.go @@ -22,7 +22,7 @@ func FetchGoogle(t *testing.T, fd net.Conn, network, addr string) { req := io.StringBytes("GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n"); n, errno := fd.Write(req); - buf := new([]byte, 1000); + buf := make([]byte, 1000); n, errno = io.Readn(fd, buf); if n < 1000 { |