From 61f7e74c91f525edbfb1b24dc46c44f6c0ede342 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 2 Feb 2016 13:32:28 -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 9b9297e..5c90dbf 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('req body:', req.body); - request.post({url:'http://'+ip, body:req.body}, function(error, response, body){ + request.post('http://'+ip, req.body, function(error, response, body){ console.log('runner body:', body) body = JSON.parse(body); body['ip'] = ip.replace('10.0.', '')