Line
Link Here
|
0 |
-- server/protocol.c |
0 |
++ server/protocol.c |
Lines 1856-1861
Link Here
|
1856 |
sizeof(char *)); |
1856 |
sizeof(char *)); |
1857 |
for (i = 0; i < conf->protocols->nelts; i++) { |
1857 |
for (i = 0; i < conf->protocols->nelts; i++) { |
1858 |
const char *p = APR_ARRAY_IDX(conf->protocols, i, char *); |
1858 |
const char *p = APR_ARRAY_IDX(conf->protocols, i, char *); |
|
|
1859 |
/* Skip "h2" because clients do not upgrade to it, |
1860 |
* instead they advertise support for "h2" using ALPN */ |
1861 |
if (!strcmp(p, "h2")) { |
1862 |
continue; |
1863 |
} |
1859 |
if (strcmp(existing, p)) { |
1864 |
if (strcmp(existing, p)) { |
1860 |
/* not the one we have and possible, add in this order */ |
1865 |
/* not the one we have and possible, add in this order */ |
1861 |
APR_ARRAY_PUSH(upgrades, const char*) = p; |
1866 |
APR_ARRAY_PUSH(upgrades, const char*) = p; |