mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
chore: cleanup old workaround (#10369)
This commit is contained in:
@ -930,10 +930,6 @@ func serveTrustlessGatewayOverLibp2p(cctx *oldcmds.Context) (<-chan error, error
|
||||
StreamHost: node.PeerHost,
|
||||
}
|
||||
|
||||
tmpProtocol := protocol.ID("/kubo/delete-me")
|
||||
h.SetHTTPHandler(tmpProtocol, http.NotFoundHandler())
|
||||
h.WellKnownHandler.RemoveProtocolMeta(tmpProtocol)
|
||||
|
||||
h.WellKnownHandler.AddProtocolMeta(gatewayProtocolID, p2phttp.ProtocolMeta{Path: "/"})
|
||||
h.ServeMux = http.NewServeMux()
|
||||
h.ServeMux.Handle("/", handler)
|
||||
|
Reference in New Issue
Block a user