Skip to content

Commit

Permalink
feat: always show the hash
Browse files Browse the repository at this point in the history
Previously, we only showed this /ipns paths. However, knowing the hash of the
current directory is useful regardless.
  • Loading branch information
Stebalien committed Apr 26, 2020
1 parent 5fff291 commit d8bc5c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/corehttp/gateway_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit d8bc5c9

Please sign in to comment.