diff options
| -rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index d1abded..1070915 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,7 +38,7 @@ app .use(json()) .post(RunnerApi.SubmitRequest.path, async (req, res) => { const body: RunnerApi.SubmitRequest.Body | undefined = req.body - if (!body || !body.source || body.source.length > MAX_SRC_LENGTH) { + if (!body || body.source === undefined || body.source.length > MAX_SRC_LENGTH) { return res.sendStatus(400) } |
