mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
allow empty contents
This commit is contained in:
parent
6e748c614c
commit
37c760b081
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ router.post('/execute', async function(req, res){
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const [i,file] of files.entries()) {
|
for (const [i,file] of files.entries()) {
|
||||||
if(!file.content || typeof file.content !== "string"){
|
if(typeof file.content !== "string"){
|
||||||
return res
|
return res
|
||||||
.status(400)
|
.status(400)
|
||||||
.send({
|
.send({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue