diff options
| author | Russ Cox <rsc@golang.org> | 2009-03-03 08:39:12 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-03-03 08:39:12 -0800 |
| commit | be2edb57614dd5a92294b7d29a34de754998fde5 (patch) | |
| tree | 028f4f1a5f6b78795c1a1ef840b49c7da342edd1 /src/lib/http/server.go | |
| parent | e8b43190bbec4b3b445739c216a0f4e023a9442f (diff) | |
| download | go-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/server.go')
| -rw-r--r-- | src/lib/http/server.go | 4 |
1 files changed, 2 insertions, 2 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(); |
