commands/http: Unexported Handler fields and created constructor
Matt Bell committed
Nov 3, 2014 at 20:08 UTC
7d4d55a84d03f8449d3c984d30b99bfa3f7133d8
1 file changed
+1
-1
cmd/ipfs2/daemon.go
+1
-1
@@ -50,7 +50,7 @@ func daemonFunc(res cmds.Response, req cmds.Request) {
50
return
51
}
52
53
- handler := cmdsHttp.Handler{*ctx, commands.Root}
53
+ handler := cmdsHttp.NewHandler(*ctx, commands.Root)
54
http.Handle(cmdsHttp.ApiPath+"/", handler)
55
56
fmt.Printf("API server listening on '%s'\n", host)