Skip to content
Myr

Added res.send() If-None-Match 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 c0a68fc · Browse files · 1 file+14 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+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

modified:test/res.send.js+14 added
283 unmodified lines
284 done();285 })286 })287 })288289 it('should respond with 304 Not Modified when fresh', function(done){290 var app = express();291292 app.use(function(req, res){293 var str = Array(1024 * 2).join('-');294 res.send(str);295 });296297 request(app)298 .get('/')299 .set('If-None-Match', '-1498647312')300 .expect(304, done);301 })302})