Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix(api): add chunker to validated query keys in files.add
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Dan Ordille <dordille@gmail.com>
  • Loading branch information
dordille authored and alanshaw committed Aug 15, 2018
1 parent b8cf631 commit 819d7b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/http/api/resources/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ exports.add = {
'raw-leaves': Joi.boolean(),
'only-hash': Joi.boolean(),
pin: Joi.boolean().default(true),
'wrap-with-directory': Joi.boolean()
'wrap-with-directory': Joi.boolean(),
chunker: Joi.string()
})
// TODO: Necessary until validate "recursive", "stream-channels" etc.
.options({ allowUnknown: true })
Expand Down Expand Up @@ -222,7 +223,7 @@ exports.add = {
hashAlg: request.query['hash'],
wrapWithDirectory: request.query['wrap-with-directory'],
pin: request.query.pin,
chunker: request.query['chunker']
chunker: request.query.chunker
}

const aborter = abortable()
Expand Down

0 comments on commit 819d7b3

Please sign in to comment.