Skip to content

Commit

Permalink
Merge pull request #319 from ipfs/fix/gateway-panic
Browse files Browse the repository at this point in the history
fix(gw): missing return in error case
  • Loading branch information
willscott committed May 29, 2023
2 parents 8ec71db + f53d423 commit b8b39be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gateway/handler_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (i *handler) serveDefaults(ctx context.Context, w http.ResponseWriter, r *h
if err != nil {
err = fmt.Errorf("failed to resolve %s: %w", debugStr(contentPath.String()), err)
webError(w, err, http.StatusInternalServerError)
return false
}
} else {
if !i.handleRequestErrors(w, contentPath, err) {
Expand Down

0 comments on commit b8b39be

Please sign in to comment.