Skip to content

Commit

Permalink
Fix unicode support
Browse files Browse the repository at this point in the history
  • Loading branch information
vlddm authored and ry committed Nov 23, 2010
1 parent 1787c0f commit f72a42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fu.js
Expand Up @@ -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
});
Expand Down

0 comments on commit f72a42e

Please sign in to comment.