Skip to content

Commit

Permalink
Remove Content-Length when compressing
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 12, 2011
1 parent a3a24d1 commit 4b2941e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/middleware/compress.js
Expand Up @@ -118,6 +118,7 @@ module.exports = function compress(options) {
// header fields
res.setHeader('Content-Encoding', method);
res.setHeader('Vary', 'Accept-Encoding');
res.removeHeader('Content-Length');

// compression

Expand Down

0 comments on commit 4b2941e

Please sign in to comment.