fix: use /ipfs/gateway as the protocol ID for serving the gateway over libp2p

This commit is contained in:
Adin Schmahmann 2023-08-31 03:48:23 -04:00
parent fb5cacac86
commit 5b0da08333

View File

@ -906,7 +906,7 @@ func serveHTTPGateway(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, e
return errc, nil
}
const gatewayProtocolID protocol.ID = "/ipfs-gateway" // FIXME: specify https://github.com/ipfs/specs/issues/433
const gatewayProtocolID protocol.ID = "/ipfs/gateway" // FIXME: specify https://github.com/ipfs/specs/issues/433
func serveTrustlessGatewayOverLibp2p(cctx *oldcmds.Context) (<-chan error, error) {
opts := []corehttp.ServeOption{