mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 10:46:27 +02:00
Merge pull request #381 from engineer-man/binary
require arleast 1 utf-8 encoded file
This commit is contained in:
commit
4483cdbe3e
1 changed files with 9 additions and 0 deletions
|
@ -87,6 +87,15 @@ function get_job(body) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
files.filter(file => !file.encoding || file.encoding === 'utf8')
|
||||||
|
.length === 0
|
||||||
|
) {
|
||||||
|
return reject({
|
||||||
|
message: 'files must include at least one utf8 encoded file',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const rt = runtime.get_latest_runtime_matching_language_version(
|
const rt = runtime.get_latest_runtime_matching_language_version(
|
||||||
language,
|
language,
|
||||||
version
|
version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue