From 0ba86e19d0aa66c1ff4eea8328d127c6fed062a7 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 2 Feb 2016 14:01:08 -0500 Subject: [PATCH] runner --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 6cbb7c0..5049e11 100644 --- a/routes/api.js +++ b/routes/api.js @@ -87,7 +87,7 @@ router.get('/list', function(req, res, next) { router.post('/run/:ip?', function(req, res, next){ var runner = function(res, req, ip){ console.log('runner on', ip); - return request.post({url:'http://'+ip, body: req.body}, function(error, response, body){ + return request.post({url:'http://'+ip, json: req.body}, function(error, response, body){ console.log('request args:', arguments) body = JSON.parse(body); body['ip'] = ip.replace('10.0.', '')