Commit d8bc5c99 authored by Steven Allen's avatar Steven Allen

feat: always show the hash

Previously, we only showed this /ipns paths. However, knowing the hash of the
current directory is useful regardless.
parent 5fff291b
......@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment