Skip to content
Myr

Added Content-Length to res.sendfile(). Closes #507

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 3f16f05 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/express/response.js+1 added
167 unmodified lines
168 + '/'169 + stat.size);170 } else {171 var stream = fs.createReadStream(path);172 self.header('Content-Length', stat.size);173 }174 self.contentType(path);175 self.header('Accept-Ranges', 'bytes');176 self.writeHead(status, self.headers);
221 unmodified lines