allow contentTransferEncoding

This commit is contained in:
Andris Reinman 2020-05-11 20:10:03 +03:00
parent f438e68c42
commit 1ca26d464c
2 changed files with 2 additions and 0 deletions

View file

@ -2213,6 +2213,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler) => {
filename: Joi.string().empty('').max(255),
contentType: Joi.string().empty('').max(255),
encoding: Joi.string().empty('').default('base64'),
contentTransferEncoding: Joi.string().empty(''),
content: Joi.string().required(),
cid: Joi.string().empty('').max(255)
})

View file

@ -823,6 +823,7 @@ module.exports = (db, server, messageHandler, userHandler) => {
filename: Joi.string().empty('').max(255),
contentType: Joi.string().empty('').max(255),
encoding: Joi.string().empty('').default('base64'),
contentTransferEncoding: Joi.string().empty(''),
content: Joi.string().required(),
cid: Joi.string().empty('').max(255)
})