Skip to content

Commit

Permalink
Merge pull request #975 from eo-uk/fix-fetch
Browse files Browse the repository at this point in the history
Fix fetch
  • Loading branch information
RobAndrewHurst authored Oct 23, 2023
2 parents 4026463 + 7d4c392 commit 71191ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mod/fetch.js
Original file line number Diff line number Diff line change
@@ -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') {
Expand Down

0 comments on commit 71191ed

Please sign in to comment.