Permalink
Browse files

refactor

  • Loading branch information...
1 parent 0d3a637 commit 88072a56eadae93cb5a34aef5d73e1c15a73d83b @tj tj committed Sep 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/response.js
View
@@ -190,7 +190,7 @@ res.json = function(obj){
// content-type
this.charset = this.charset || 'utf-8';
- if (!this.get('Content-Type')) this.set('Content-Type', 'application/json');
+ this.get('Content-Type') || this.set('Content-Type', 'application/json');
return this.send(body);
};

0 comments on commit 88072a5

Please sign in to comment.