Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #110 from ipfs/fix/double-recursive-flag
Browse files Browse the repository at this point in the history
fix double recursive flag
  • Loading branch information
daviddias committed Nov 12, 2015
2 parents 61c8eb8 + 9b77ad3 commit d4f29bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/request-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ function requestAPI (config, path, args, qs, files, buffer, cb) {
buffer = false
}

if (qs.r) qs.recursive = qs.r
if (qs.r) {
qs.recursive = qs.r
delete qs.r // From IPFS 0.4.0, it throw an error when both r and recursive are passed
}

if (!isNode && qs.recursive && path === 'add') {
return cb(new Error('Recursive uploads are not supported in the browser'))
Expand Down

0 comments on commit d4f29bb

Please sign in to comment.