From a28b009cdf470d84059c438b73beb20bf32be830 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 21 May 2019 20:44:25 +0100 Subject: [PATCH] fix: send trickle param to trigger trickle dag builder (#1015) --- 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,