Permalink
Browse files

Allowed disabling charset in content-type for binary types.

  • Loading branch information...
1 parent f4c3af8 commit d40cd506dd969336a504a66b17e3767849d3b539 @cskr committed Nov 2, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 grasshopper/lib/renderer.js
@@ -220,7 +220,9 @@ RequestContext.prototype.send = function(text) {
};
RequestContext.prototype.writeHead = function() {
- this.headers['content-type'] += '; charset=' + this.charset
+ if(this.charset) {
+ this.headers['content-type'] += '; charset=' + this.charset
+ }
this.response.writeHead(this.status, this.headers);
};

0 comments on commit d40cd50

Please sign in to comment.