Skip to content

Commit d8bc5c9

Browse files
committed
feat: always show the hash
Previously, we only showed this /ipns paths. However, knowing the hash of the current directory is useful regardless.
1 parent 5fff291 commit d8bc5c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/corehttp/gateway_handler.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,7 @@ func (i *gatewayHandler) getOrHeadHandler(w http.ResponseWriter, r *http.Request
330330
}
331331
}
332332

333-
var hash string
334-
if !strings.HasPrefix(urlPath, ipfsPathPrefix) {
335-
hash = resolvedPath.Cid().String()
336-
}
333+
hash := resolvedPath.Cid().String()
337334

338335
// See comment above where originalUrlPath is declared.
339336
tplData := listingTemplateData{

0 commit comments

Comments
 (0)