chore: cleanup old workaround (#10369)
Marco Munizaga committed
Mar 19, 2024 at 04:26 UTC
9a5f5e7352656644ccea11da5d0dccc3b4160e0f
1 file changed
-4
cmd/ipfs/kubo/daemon.go
-4
@@ -930,10 +930,6 @@ func serveTrustlessGatewayOverLibp2p(cctx *oldcmds.Context) (<-chan error, error
930
StreamHost: node.PeerHost,
931
}
932
933
- tmpProtocol := protocol.ID("/kubo/delete-me")
934
- h.SetHTTPHandler(tmpProtocol, http.NotFoundHandler())
935
- h.WellKnownHandler.RemoveProtocolMeta(tmpProtocol)
936
-
933
h.WellKnownHandler.AddProtocolMeta(gatewayProtocolID, p2phttp.ProtocolMeta{Path: "/"})
934
h.ServeMux = http.NewServeMux()
935
h.ServeMux.Handle("/", handler)