]> Cypherpunks repositories - gostls13.git/commitdiff
change the URL in the test to avoid a redirection that breaks it in sydney.
authorRob Pike <r@golang.org>
Mon, 16 Feb 2009 03:58:00 +0000 (19:58 -0800)
committerRob Pike <r@golang.org>
Mon, 16 Feb 2009 03:58:00 +0000 (19:58 -0800)
R=rsc
OCL=25054
CL=25054

src/lib/net/dialgoogle_test.go

index 0bf3eae9a9287acfea4d35eab0ec3e8bc42b5ec5..248b90de904a8f3a9290d6bf25380ca01a88b01d 100644 (file)
@@ -15,10 +15,10 @@ import (
 // If an IPv6 tunnel is running (see go/stubl), we can try dialing a real IPv6 address.
 var ipv6 = flag.Bool("ipv6", false, "assume ipv6 tunnel is present")
 
-// fd is already connected to www.google.com port 80.
-// Run an HTTP request to fetch the main page.
+// fd is already connected to the destination, port 80.
+// Run an HTTP request to fetch the appropriate page.
 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");
+       req := io.StringBytes("GET /intl/en/privacy.html HTTP/1.0\r\nHost: www.google.com\r\n\r\n");
        n, errno := fd.Write(req);
 
        buf := make([]byte, 1000);