Skip to content

Commit

Permalink
Merge pull request #17 from jed/patch-1
Browse files Browse the repository at this point in the history
add missing 'content-length' header for HTTP responses.
  • Loading branch information
mikeal committed Apr 29, 2012
2 parents 6f94322 + 7a102e7 commit db514b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Expand Up @@ -135,6 +135,7 @@ function File (options) {
self.dest.setHeader('content-type', self.mimetype)
self.dest.setHeader('etag', self.etag)
self.dest.setHeader('last-modified', self.lastmodified)
self.dest.setHeader('content-length', stats.size)
fs.createReadStream(self.path).pipe(self.dest)
return
}
Expand Down

0 comments on commit db514b9

Please sign in to comment.