From 1d8fa99ddc7d780e176ae13d0b39c26d6b51cde6 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 2 Feb 2016 14:26:42 -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 81177ff..942c4ee 100644 --- a/routes/api.js +++ b/routes/api.js @@ -88,7 +88,7 @@ router.post('/run/:ip?', function(req, res, next){ var runner = function(res, req, ip){ console.log('runner on', ip,'with body:\n', JSON.stringify(req.body)); - return request.post({url:'http://'+ip, postData: req.body}, function(error, response, body){ + return request.post({url:'http://'+ip, form: req.body}, function(error, response, body){ console.log('request args:', arguments) body = JSON.parse(body); body['ip'] = ip.replace('10.0.', '')