From 7d4d55a84d03f8449d3c984d30b99bfa3f7133d8 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Mon, 3 Nov 2014 20:08:08 -0800 Subject: [PATCH] commands/http: Unexported Handler fields and created constructor --- cmd/ipfs2/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ipfs2/daemon.go b/cmd/ipfs2/daemon.go index d7469f01a..e3f3b0043 100644 --- a/cmd/ipfs2/daemon.go +++ b/cmd/ipfs2/daemon.go @@ -50,7 +50,7 @@ func daemonFunc(res cmds.Response, req cmds.Request) { return } - handler := cmdsHttp.Handler{*ctx, commands.Root} + handler := cmdsHttp.NewHandler(*ctx, commands.Root) http.Handle(cmdsHttp.ApiPath+"/", handler) fmt.Printf("API server listening on '%s'\n", host)