diff --git a/src/files/add.js b/src/files/add.js index 324a49416..215a7be12 100644 --- a/src/files/add.js +++ b/src/files/add.js @@ -41,6 +41,12 @@ module.exports = (send) => { } else if (opts.hashAlg != null) { qs.hash = opts.hashAlg } + if (opts['only-hash'] != null) { + qs['only-hash'] = opts['only-hash'] + } + if (opts.pin != null) { + qs.pin = opts.pin + } const request = { path: 'add', files: files, qs: qs, progress: opts.progress }