mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
- 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:
parent
baba292998
commit
3bb0032cd6
121 changed files with 750 additions and 750 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue