]> granicus.if.org Git - apache/commitdiff
mod_rewrite: adding h2:// and h2c:// proxy schemes to absolute uri detection, patch...
authorStefan Eissing <icing@apache.org>
Tue, 17 May 2016 08:24:10 +0000 (08:24 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 17 May 2016 08:24:10 +0000 (08:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1744206 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index fc7e8e4ca9916b0026dcdd811ccb8c51a5b20899..6ab530f07f232ce5fd539a800d9e7d8079312500 100644 (file)
@@ -568,6 +568,14 @@ static unsigned is_absolute_uri(char *uri, int *supportsqs)
             *sqs = 1;
             return 8;
         }
+        else if (!ap_casecmpstrn(uri, "2://", 4)) {    /* h2://     */
+            *sqs = 1;
+            return 5;
+        }
+        else if (!ap_casecmpstrn(uri, "2c://", 5)) {   /* h2c://    */
+            *sqs = 1;
+            return 6;
+        }
         break;
 
     case 'l':