Skip to content

Commit

Permalink
Merge pull request ipfs/kubo#6050 from ipfs/fix/useless-online
Browse files Browse the repository at this point in the history
cleanup daemon online logic

This commit was moved from ipfs/kubo@4b57080
  • Loading branch information
Stebalien authored Mar 5, 2019
2 parents c5be156 + 2becf00 commit bc06c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/core/corehttp/gateway_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (i *gatewayHandler) getOrHeadHandler(ctx context.Context, w http.ResponseWr

// Resolve path to the final DAG node for the ETag
resolvedPath, err := i.api.ResolvePath(ctx, parsedPath)
if err == coreiface.ErrOffline && !i.node.OnlineMode() {
if err == coreiface.ErrOffline && !i.node.IsOnline {
webError(w, "ipfs resolve -r "+escapedURLPath, err, http.StatusServiceUnavailable)
return
} else if err != nil {
Expand Down

0 comments on commit bc06c6d

Please sign in to comment.