Permalink
Browse files

Merge pull request #17 from jed/patch-1

add missing 'content-length' header for HTTP responses.
  • Loading branch information...
2 parents 6f94322 + 7a102e7 commit db514b9df1fed7af94b226c59539b107360d7483 @mikeal mikeal committed Apr 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 main.js
View
1 main.js
@@ -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
}

0 comments on commit db514b9

Please sign in to comment.