mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 08:18:03 +08:00
feat: always show the hash
Previously, we only showed this /ipns paths. However, knowing the hash of the current directory is useful regardless.
This commit is contained in:
parent
5fff291bf7
commit
d8bc5c991e
@ -330,10 +330,7 @@ func (i *gatewayHandler) getOrHeadHandler(w http.ResponseWriter, r *http.Request
|
||||
}
|
||||
}
|
||||
|
||||
var hash string
|
||||
if !strings.HasPrefix(urlPath, ipfsPathPrefix) {
|
||||
hash = resolvedPath.Cid().String()
|
||||
}
|
||||
hash := resolvedPath.Cid().String()
|
||||
|
||||
// See comment above where originalUrlPath is declared.
|
||||
tplData := listingTemplateData{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user