mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 20:37:53 +08:00
gateway index: fix check for displaying CID.
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
9ef1486307
commit
65fc4b45e9
@ -348,7 +348,7 @@ func (i *gatewayHandler) getOrHeadHandler(ctx context.Context, w http.ResponseWr
|
||||
}
|
||||
|
||||
var hash string
|
||||
if !strings.Contains(originalUrlPath, "ipfs") {
|
||||
if !strings.HasPrefix(originalUrlPath, ipfsPathPrefix) {
|
||||
hash = resolvedPath.Cid().String()
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user