]> granicus.if.org Git - apache/commitdiff
core: removing quirk for supressing h2 in Upgrade: response header, never backported...
authorStefan Eissing <icing@apache.org>
Wed, 15 Jun 2016 14:47:21 +0000 (14:47 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 15 Jun 2016 14:47:21 +0000 (14:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1748591 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index bb524c4a3ccfab0f42402fb5cbf7e72544bb19c9..afdcf5fb65c14429120bcce19899ddea35737531 100644 (file)
@@ -2023,12 +2023,7 @@ AP_DECLARE(apr_status_t) ap_get_protocol_upgrades(conn_rec *c, request_rec *r,
                                       sizeof(char *));
             for (i = 0; i < conf->protocols->nelts; i++) {
                 const char *p = APR_ARRAY_IDX(conf->protocols, i, char *);
-                /* special quirk for HTTP/2 which does not allow 'h2' to
-                 * be part of an Upgrade: header */
-                if (!strcmp("h2", p)) {
-                    continue;
-                }
-                else if (strcmp(existing, p)) {
+                if (strcmp(existing, p)) {
                     /* not the one we have and possible, add in this order */
                     APR_ARRAY_PUSH(upgrades, const char*) = p;
                 }