From 32ddcfba7dd8f8f1d656545044dc417f6b26ba26 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 2 Feb 2016 14:24:51 -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 e8e4da0..81177ff 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: JSON.stringify(req.body)}, function(error, response, body){ + return request.post({url:'http://'+ip, postData: req.body}, function(error, response, body){ console.log('request args:', arguments) body = JSON.parse(body); body['ip'] = ip.replace('10.0.', '')