Commit 67d0efd8 authored by nanahira's avatar nanahira

Added utf8 encoding

parent 158f21af
...@@ -154,7 +154,8 @@ http.createServer(function (req, res) { ...@@ -154,7 +154,8 @@ 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;
}) })
......
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