diff mbox

libgo patch committed: Fix test

Message ID mcr39q9nmsq.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor Dec. 8, 2010, 12:14 a.m. UTC
One of the libgo networking tests broke because something changed on
Google's web site.  This patch, copied from the master repository, fixes
it.  Committed to mainline.

Ian
diff mbox

Patch

diff -r 4baa549be2cc libgo/go/net/dialgoogle_test.go
--- a/libgo/go/net/dialgoogle_test.go	Tue Dec 07 13:45:46 2010 -0800
+++ b/libgo/go/net/dialgoogle_test.go	Tue Dec 07 16:12:44 2010 -0800
@@ -17,7 +17,7 @@ 
 // 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.html HTTP/1.0\r\nHost: www.google.com\r\n\r\n")
+	req := []byte("GET /intl/en/privacy/ HTTP/1.0\r\nHost: www.google.com\r\n\r\n")
 	n, err := fd.Write(req)
 
 	buf := make([]byte, 1000)