From a401276e683aa501900849a57f0b956f2522503b Mon Sep 17 00:00:00 2001 From: Jc0803kevin Date: Fri, 14 Oct 2022 00:08:58 +0800 Subject: [PATCH] ipfs /api/v0/id is post (#1819) --- examples/routed-echo/bootstrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/routed-echo/bootstrap.go b/examples/routed-echo/bootstrap.go index ce0f320232..b09228e878 100644 --- a/examples/routed-echo/bootstrap.go +++ b/examples/routed-echo/bootstrap.go @@ -43,7 +43,7 @@ type IdOutput struct { // quick and dirty function to get the local ipfs daemons address for bootstrapping func getLocalPeerInfo() []peer.AddrInfo { - resp, err := http.Get(LOCAL_PEER_ENDPOINT) + resp, err := http.PostForm(LOCAL_PEER_ENDPOINT, nil) if err != nil { log.Fatalln(err) }