summaryrefslogtreecommitdiff
path: root/src/lib/http/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/http/server.go')
-rw-r--r--src/lib/http/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/http/server.go b/src/lib/http/server.go
index ffb81cc90..086621ae1 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();