-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) core: explicitly exclude 'h2' from protocols announced via an Upgrade:
+ header as commanded by http-wg.
+
*) mod_http2: disabling mmap for file buckets transport due to segmenation
faults when files change on the fly.
sizeof(char *));
for (i = 0; i < conf->protocols->nelts; i++) {
const char *p = APR_ARRAY_IDX(conf->protocols, i, char *);
- if (strcmp(existing, p)) {
+ /* special quirk for HTTP/2 which does not allow 'h2' to
+ * be part of an Upgrade: header */
+ if (strcmp(existing, p) && strcmp("h2", p)) {
/* not the one we have and possible, add in this order */
APR_ARRAY_PUSH(upgrades, const char*) = p;
}