http: close after responding to HTTP/1.0 request without Connection: keep-alive

R=adg
CC=golang-dev
https://golang.org/cl/4245065
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go
index a2a0e14..5d623e6 100644
--- a/src/pkg/http/server.go
+++ b/src/pkg/http/server.go
@@ -285,6 +285,9 @@
 		if !connectionHeaderSet {
 			w.SetHeader("Connection", "keep-alive")
 		}
+	} else if !w.req.ProtoAtLeast(1, 1) {
+		// Client did not ask to keep connection alive.
+		w.closeAfterReply = true
 	}
 
 	// Cannot use Content-Length with non-identity Transfer-Encoding.