aboutsummaryrefslogtreecommitdiff
path: root/src/lib/http
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-03 08:39:12 -0800
committerRuss Cox <rsc@golang.org>2009-03-03 08:39:12 -0800
commitbe2edb57614dd5a92294b7d29a34de754998fde5 (patch)
tree028f4f1a5f6b78795c1a1ef840b49c7da342edd1 /src/lib/http
parente8b43190bbec4b3b445739c216a0f4e023a9442f (diff)
downloadgo-be2edb57614dd5a92294b7d29a34de754998fde5.tar.xz
Automated g4 rollback of changelist 25024,
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
Diffstat (limited to 'src/lib/http')
-rw-r--r--src/lib/http/server.go4
-rw-r--r--src/lib/http/status.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/http/server.go b/src/lib/http/server.go
index 086621ae1a..ffb81cc90c 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 f7409eb4c5..82a8b214c4 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",
-)
+}