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) { ...@@ -154,10 +154,11 @@ http.createServer(function (req, res) {
if (!hook_info) { if (!hook_info) {
return return_error(res, "Webhook "+hook+" not found."); return return_error(res, "Webhook "+hook+" not found.");
} }
var info = ""; var info = "";
req.setEncoding("utf8");
req.addListener('data', function(chunk) { req.addListener('data', function(chunk) {
info += chunk; info += chunk;
}) });
req.addListener('end', function() { req.addListener('end', function() {
var infodata; var infodata;
try { try {
...@@ -178,7 +179,7 @@ http.createServer(function (req, res) { ...@@ -178,7 +179,7 @@ http.createServer(function (req, res) {
var return_msg = add_process(hook, hook_info); var return_msg = add_process(hook, hook_info);
return return_success(res, return_msg); return return_success(res, return_msg);
} }
}) });
return; return;
}).listen(config.port); }).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