You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation misleading: req.accepts() does not return a boolean #957
The implementation of req.accepts(type) actually returns a type string, not a boolean like the docs seem to indicate. I'm wondering if the behavior changed at some point and the documentation was just never updated to reflect that?
Activity
DonutEspresso commentedon Dec 3, 2015
Looks like the documentation is indeed out of date. We'll fix that up as soon as we can. Thanks!
Khez commentedon Feb 3, 2016
I'm uncertain if the documentation or implementation is broke...
I did some tests and things seem worrying.
Accept: text/html
Accept: text/*; application/json
Accept: application/json; text/*
Accept: /
Can anyone confirm the desired behaviour ?
I could try to do a pull request after some further investigation...
Create FEATURE_REQUESTS.md