diff --git a/mod/fetch.js b/mod/fetch.js index 4ed1614120..cbb8d4ab5f 100644 --- a/mod/fetch.js +++ b/mod/fetch.js @@ -1,5 +1,10 @@ module.exports = async (req, res) => { + if (!req.options?.template) { + res.status(400).send(); + return; + } + const template = req.options.template if (typeof template.options.body !== 'string') {