enforce minimum on 1mb chunk size

This commit is contained in:
Andris Reinman 2019-05-07 11:46:48 +03:00
parent 5297a6edbf
commit b78107c7aa

View file

@ -228,6 +228,10 @@ module.exports = {
startFrom: Number(param.partial[0]) || 0,
maxLength: Number(param.partial[1]) || 0
};
if (item.partial.maxLength && item.partial.maxLength < 1024 * 1024) {
item.partial.maxLength = 1024 * 1024;
}
}
if (!imapTools.fetchSchema.hasOwnProperty(item.item) || !checkSchema(imapTools.fetchSchema[item.item], item)) {
return callback(null, {