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

Commit

Permalink
feat: expose pin and preload arguments (#1079)
Browse files Browse the repository at this point in the history
achingbrain authored and Alan Shaw committed Aug 23, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 719bfad commit e3ed6e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/send-files-stream.js
Original file line number Diff line number Diff line change
@@ -79,6 +79,8 @@ module.exports = (send, path) => {
qs['raw-leaves'] = propOrProp(options, 'raw-leaves', 'rawLeaves')
qs['only-hash'] = propOrProp(options, 'only-hash', 'onlyHash')
qs['wrap-with-directory'] = propOrProp(options, 'wrap-with-directory', 'wrapWithDirectory')
qs['pin'] = propOrProp(options, 'pin')
qs['preload'] = propOrProp(options, 'preload')
qs.hash = propOrProp(options, 'hash', 'hashAlg')

if (options.strategy === 'trickle' || options.trickle) {

0 comments on commit e3ed6e9

Please sign in to comment.