Skip to content

Commit

Permalink
fix: ipld not found errors are not 404s
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Jul 6, 2023
1 parent ee54b28 commit 6576e61
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions gateway/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/ipfs/boxo/gateway/assets"
"github.com/ipfs/boxo/path/resolver"
"github.com/ipfs/go-cid"
ipld "github.com/ipfs/go-ipld-format"
"github.com/ipld/go-ipld-prime/datamodel"
)

Expand Down Expand Up @@ -178,10 +177,6 @@ func webError(w http.ResponseWriter, r *http.Request, c *Config, err error, defa
}

func isErrNotFound(err error) bool {
if ipld.IsNotFound(err) {
return true
}

// Checks if err is of a type that does not implement the .Is interface and
// cannot be directly compared to. Therefore, errors.Is cannot be used.
for {
Expand Down

0 comments on commit 6576e61

Please sign in to comment.