fix negotiator 3.0 change
i'm not sure if this is incorrect. people should use `accepts()` anyways.
This commit is contained in:
parent
f0ecaaff50
commit
a129d41cc1
1 changed files with 2 additions and 2 deletions
|
@ -394,7 +394,7 @@ describe('ctx.accepted', function(){
|
||||||
it('should return accepted types', function(){
|
it('should return accepted types', function(){
|
||||||
var ctx = context();
|
var ctx = context();
|
||||||
ctx.req.headers.accept = 'application/*;q=0.2, image/jpeg;q=0.8, text/html, text/plain';
|
ctx.req.headers.accept = 'application/*;q=0.2, image/jpeg;q=0.8, text/html, text/plain';
|
||||||
ctx.accepted.should.eql(['text/plain', 'text/html', 'image/jpeg', 'application/*']);
|
ctx.accepted.should.eql(['text/html', 'text/plain', 'image/jpeg', 'application/*']);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue