fix(accepts, language): skip accept entries with quality 0 when matching (#5311)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* fix(accepts, language): skip accept entries with quality 0 when matching A quality value of 0 marks a range as explicitly not acceptable (RFC 9110 §12.5.1/§12.5.4), but accepts()'s defaultMatch and the language detector's header detection still matched such entries, e.g. Accept: application/json;q=0 was served application/json. The compress middleware already applies this rule; align the other two consumers with it. * test(accepts): add test for subtype wildcard rejected with q=0 * test(language): continue to next detector after zero-quality language
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+108 added−7 removed
- tests:+92 added−0 removed
- other:+16 added−7 removed