Permalink
Browse files

add missing 'content-length' header for HTTP responses.

  • Loading branch information...
1 parent 6f94322 commit 7a102e74117c45882b68a95b05769145362fd92c @jed jed committed Apr 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 main.js
View
@@ -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 7a102e7

Please sign in to comment.