per https://tools.ietf.org/html/rfc7231#section-3.1.3.1
PR: 39730
Backports: r1850989
Submitted by: jailletc36
Reviewed by: jailletc36, wrowe, jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1851468 13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.4.38
+ *) mod_negotiation: Treat LanguagePriority as case-insensitive to match
+ AddLanguage behavior and HTTP specification. PR 39730 [Christophe Jaillet]
+
*) mod_md: incorrect behaviour when synchronizing ongoing ACME challenges
have been fixed. [Michael Kaufmann, Stefan Eissing]
2.4.x patch: svn merge -c 1851093 ^/httpd/httpd/trunk .
+1: jailletc36 (by inspection), jim
- *) mod_negotiation: LanguagePriority tags must be treated case-insensitive,
- per https://tools.ietf.org/html/rfc7231#section-3.1.3.1 PR 39730
- trunk patch: http://svn.apache.org/r1850989
- 2.4.x patch: svn merge -c 1850989 ^/httpd/httpd/trunk .
- +1: jailletc36, wrowe, jim
-
*) easy proposals:
- mod_authn_dbm: Return APR_SUCCESS which is equivalent but more readable
than 'rv' here
alang = (const char **) accept_langs->elts;
for (i = 0; i < accept_langs->nelts; ++i) {
- if (!strncmp(lang, *alang, strlen(*alang))) {
+ if (!ap_cstr_casecmpn(lang, *alang, strlen(*alang))) {
return i;
}
alang += (accept_langs->elt_size / sizeof(char*));