net: fix dialing google test

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5573060
This commit is contained in:
Mikio Hara 2012-01-26 07:38:49 +09:00
parent dbce368ef9
commit 9acea02de2

View File

@ -19,7 +19,7 @@ var ipv6 = flag.Bool("ipv6", false, "assume ipv6 tunnel is present")
// fd is already connected to the destination, port 80.
// Run an HTTP request to fetch the appropriate page.
func fetchGoogle(t *testing.T, fd Conn, network, addr string) {
req := []byte("GET /intl/en/privacy/ HTTP/1.0\r\nHost: www.google.com\r\n\r\n")
req := []byte("GET /robots.txt HTTP/1.0\r\nHost: www.google.com\r\n\r\n")
n, err := fd.Write(req)
buf := make([]byte, 1000)