Skip to content
Myr

Added res.sendfile() Accept-Ranges test

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 8b5773c · Browse files · 1 file+16 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+16 added−0 removed

  • tests:+16 added−0 removed

1 file+16 added−0 removed

modified:test/response.test.js+16 added
216 unmodified lines
217 { url: '/large.json' },218 { status: 200, headers: { 'Content-Length': 2535, 'Content-Type': 'application/json' }});219 },220 221 'test #sendfile() Accept-Ranges': function(assert){222 var app = express.createServer();223 224 app.set('stream threshold', 1024);225 226 app.get('/*', function(req, res, next){227 var file = req.params[0],228 path = __dirname + '/fixtures/' + file;229 res.sendfile(path);230 });231 232 assert.response(app,233 { url: '/large.json' },234 { headers: { 'Accept-Ranges': 'bytes' }});235 },236 237 'test #download()': function(assert){238 var app = express.createServer();239 240 app.get('/json', function(req, res, next){
82 unmodified lines