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

Commit 819d7b3

Browse files
dordillealanshaw
authored andcommitted
fix(api): add chunker to validated query keys in files.add
License: MIT Signed-off-by: Dan Ordille <[email protected]>
1 parent b8cf631 commit 819d7b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/http/api/resources/files.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ exports.add = {
157157
'raw-leaves': Joi.boolean(),
158158
'only-hash': Joi.boolean(),
159159
pin: Joi.boolean().default(true),
160-
'wrap-with-directory': Joi.boolean()
160+
'wrap-with-directory': Joi.boolean(),
161+
chunker: Joi.string()
161162
})
162163
// TODO: Necessary until validate "recursive", "stream-channels" etc.
163164
.options({ allowUnknown: true })
@@ -222,7 +223,7 @@ exports.add = {
222223
hashAlg: request.query['hash'],
223224
wrapWithDirectory: request.query['wrap-with-directory'],
224225
pin: request.query.pin,
225-
chunker: request.query['chunker']
226+
chunker: request.query.chunker
226227
}
227228

228229
const aborter = abortable()

0 commit comments

Comments
 (0)