Skip to content
Browse files

Merge pull request #640 from laktek/master

Fix for #561
  • Loading branch information...
2 parents 9f22390 + 7c4b858 commit 8a57d730f066d2cde62dbf877d4d1f557d3518a8 @tj tj committed Aug 7, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/middleware/compress.js
View
3 lib/middleware/compress.js
@@ -1,4 +1,3 @@
-
/*!
* Connect - compress
* Copyright(c) 2010 Sencha Inc.
@@ -79,7 +78,7 @@ module.exports = function compress(options) {
res.write = function(chunk, encoding){
if (!this.headerSent) this._implicitHeader();
return stream
- ? stream.write(chunk, encoding)
+ ? stream.write(new Buffer(chunk, encoding))
: write.call(res, chunk, encoding);
};

0 comments on commit 8a57d73

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