Permalink
Browse files

Fix unicode support

  • Loading branch information...
1 parent 1787c0f commit f72a42ee6aab1886afa638d05fea1ac34787e05f @fly-away fly-away committed with ry Nov 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 fu.js
View
2 fu.js
@@ -32,7 +32,7 @@ var server = createServer(function (req, res) {
};
res.simpleJSON = function (code, obj) {
- var body = JSON.stringify(obj);
+ var body = new Buffer(JSON.stringify(obj));
res.writeHead(code, { "Content-Type": "text/json"
, "Content-Length": body.length
});

0 comments on commit f72a42e

Please sign in to comment.