- replaced gofmt expression formatting algorithm with

rsc's algorithm
- applied gofmt -w misc src
- partial CL (last chunk)

R=rsc, r
http://go/go-review/1024041
This commit is contained in:
Robert Griesemer 2009-11-09 21:23:52 -08:00
parent baba292998
commit 3bb0032cd6
121 changed files with 750 additions and 750 deletions

View file

@ -391,7 +391,7 @@ func serveHTTP(c *http.Conn, req *http.Request) {
if req.Method != "CONNECT" {
c.SetHeader("Content-Type", "text/plain; charset=utf-8");
c.WriteHeader(http.StatusMethodNotAllowed);
io.WriteString(c, "405 must CONNECT to " + rpcPath + "\n");
io.WriteString(c, "405 must CONNECT to "+rpcPath+"\n");
return;
}
conn, _, err := c.Hijack();
@ -399,7 +399,7 @@ func serveHTTP(c *http.Conn, req *http.Request) {
log.Stderr("rpc hijacking ", c.RemoteAddr, ": ", err.String());
return;
}
io.WriteString(conn, "HTTP/1.0 " + connected + "\n\n");
io.WriteString(conn, "HTTP/1.0 "+connected+"\n\n");
server.input(conn);
}