mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
fix json validation
This commit is contained in:
parent
de449c6d56
commit
5830d7fb43
2 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,10 @@ const axios = require('axios').default;
|
|||
|
||||
const axios_instance = argv => {
|
||||
argv.axios = axios.create({
|
||||
baseURL: argv['piston-url']
|
||||
baseURL: argv['piston-url'],
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
|
||||
return argv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue