Skip to content
Myr

add "application/octet-stream" redirect Accept test case. Closes #1317

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

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:test/res.redirect.js+1 added-1 removed
279 unmodified lines
280 });281282 request(app)283 .get('/')284 .set('Accept', 'foo/bar')284 .set('Accept', 'application/octet-stream')285 .end(function(err, res){286 res.should.have.status(302);287 res.headers.should.have.property('location', 'http://google.com');288 res.headers.should.not.have.property('content-type');
7 unmodified lines