From fabdffa36d141b91a3ad812572471c3181ef8071 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 21 May 2019 18:14:00 +0100 Subject: [PATCH] fix: actually send the param to trigger the trickle dag builder --- src/utils/send-files-stream.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/send-files-stream.js b/src/utils/send-files-stream.js index c2450d39e..4c91798fc 100644 --- a/src/utils/send-files-stream.js +++ b/src/utils/send-files-stream.js @@ -81,6 +81,10 @@ module.exports = (send, path) => { qs['wrap-with-directory'] = propOrProp(options, 'wrap-with-directory', 'wrapWithDirectory') qs.hash = propOrProp(options, 'hash', 'hashAlg') + if (options.strategy === 'trickle' || options.trickle) { + qs['trickle'] = 'true' + } + const args = { path: path, qs: qs,