Skip to content
Myr

Added Accept-Ranges: bytes

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 8267b8d · 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
148 unmodified lines
149 if (err) return error(err);150 if (stat.size >= streamThreshold) {151 var stream = fs.createReadStream(path);152 self.contentType(path);153 self.header('Accept-Ranges', 'bytes');154 self.header('Content-Length', stat.size);155 self.writeHead(200, self.headers);156 pump(stream, self, function(err){157 fn && fn(err, path, true);
185 unmodified lines