This commit is contained in:
William Mantly 2016-04-22 13:07:45 -04:00
parent 3a313a21d1
commit 77d8f2b743

View File

@ -29,7 +29,7 @@ var lxcTimeout = function(ip, time){
var runner = function(req, res, ip){ var runner = function(req, res, ip){
lxcTimeout(ip); lxcTimeout(ip);
console.log('code to run:\n', req.params); console.log('code to run:\n', req.body);
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){ return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){
console.log(body); console.log(body);
// body = JSON.parse(body); // body = JSON.parse(body);