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:
Steven Allen 2020-04-26 16:09:02 -07:00
parent 5fff291bf7
commit d8bc5c991e

View File

@ -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{