diff options
| author | Russ Cox <rsc@golang.org> | 2009-02-13 14:48:32 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-02-13 14:48:32 -0800 |
| commit | 9f8f2e6130d7899b0f689232d173ea2e4441285c (patch) | |
| tree | a3b6c6ab9f68981976738f0efc7988353d5a0d82 /src/lib/http | |
| parent | 07244f7c8081669f33433385a1f81e2a8d8cb55d (diff) | |
| download | go-9f8f2e6130d7899b0f689232d173ea2e4441285c.tar.xz | |
convert composite literals from { } to ( ).
only non-trivial changes are in
convlit1.go
golden.out
R=gri
OCL=25019
CL=25024
Diffstat (limited to 'src/lib/http')
| -rw-r--r-- | src/lib/http/server.go | 4 | ||||
| -rw-r--r-- | src/lib/http/status.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/http/server.go b/src/lib/http/server.go index ffb81cc90c..086621ae1a 100644 --- a/src/lib/http/server.go +++ b/src/lib/http/server.go @@ -247,7 +247,7 @@ func (h *redirectHandler) ServeHTTP(c *Conn, req *Request) { } func RedirectHandler(to string) Handler { - return &redirectHandler{to}; + return &redirectHandler(to); } // Path-based HTTP request multiplexer. @@ -265,7 +265,7 @@ type ServeMux struct { } func NewServeMux() *ServeMux { - return &ServeMux{make(map[string] Handler)}; + return &ServeMux(make(map[string] Handler)); } var DefaultServeMux = NewServeMux(); diff --git a/src/lib/http/status.go b/src/lib/http/status.go index 82a8b214c4..f7409eb4c5 100644 --- a/src/lib/http/status.go +++ b/src/lib/http/status.go @@ -53,7 +53,7 @@ const ( StatusHTTPVersionNotSupported = 505; ) -var statusText = map[int]string { +var statusText = map[int]string ( StatusContinue: "Continue", StatusSwitchingProtocols: "Switching Protocols", @@ -98,5 +98,5 @@ var statusText = map[int]string { StatusServiceUnavailable: "Service Unavailable", StatusGatewayTimeout: "Gateway Timeout", StatusHTTPVersionNotSupported: "HTTP Version Not Supported", -} +) |
