Commit f0561336 authored by nanahira's avatar nanahira

Merge branch 'master' of https://github.com/moecube/srvpro into mc

parents 0b04a0d2 5b6a90d6
......@@ -154,10 +154,11 @@ http.createServer(function (req, res) {
if (!hook_info) {
return return_error(res, "Webhook "+hook+" not found.");
}
var info = "";
var info = "";
req.setEncoding("utf8");
req.addListener('data', function(chunk) {
info += chunk;
})
});
req.addListener('end', function() {
var infodata;
try {
......@@ -178,7 +179,7 @@ http.createServer(function (req, res) {
var return_msg = add_process(hook, hook_info);
return return_success(res, return_msg);
}
})
});
return;
}).listen(config.port);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment