feat: always show the hash
Previously, we only showed this /ipns paths. However, knowing the hash of the current directory is useful regardless.
Steven Allen committed
Apr 26, 2020 at 16:09 UTC
d8bc5c991e29c5de0c090ff851f6abdf00180a67
1 file changed
+1
-4
core/corehttp/gateway_handler.go
+1
-4
@@ -330,10 +330,7 @@ func (i *gatewayHandler) getOrHeadHandler(w http.ResponseWriter, r *http.Request
330
}
331
}
332
333
- var hash string
334
- if !strings.HasPrefix(urlPath, ipfsPathPrefix) {
335
- hash = resolvedPath.Cid().String()
336
- }
333
+ hash := resolvedPath.Cid().String()
334
335
// See comment above where originalUrlPath is declared.
336
tplData := listingTemplateData{