Skip to content
Browse files

stringify!

  • Loading branch information...
1 parent 751ba3e commit 59c2e52f77f2dbe9359116555105e603ecdf3b8b @mvrilo committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/response.js
View
2 lib/response.js
@@ -1,6 +1,6 @@
module.exports = {
json : function(obj) {
- this.handler[this.route]['body'] = obj;
+ this.handler[this.route]['body'] = JSON.stringify(obj);
return this;
},
send : function(str) {

0 comments on commit 59c2e52

Please sign in to comment.
Something went wrong with that request. Please try again.