]> granicus.if.org Git - apache/commitdiff
Merge r1744206 from trunk:
authorJim Jagielski <jim@apache.org>
Mon, 6 Jun 2016 19:11:20 +0000 (19:11 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 6 Jun 2016 19:11:20 +0000 (19:11 +0000)
mod_rewrite: adding h2:// and h2c:// proxy schemes to absolute uri detection, patch by Evgeny Kotkov
Submitted by: icing
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1747056 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/mappers/mod_rewrite.c

diff --git a/STATUS b/STATUS
index 505542423bf0b4458f1f113ff083035b5ab09381..e9710e7e0ee5eb82f994ecf6d7b9985e05b9ccb3 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -115,12 +115,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
 
- *) mod_rewrite: support new h2:// and h2c:// proxy url schemes in detection
-     of absolute urls:
-     trunk patch: http://svn.apache.org/r1744206
-     2.4.x patch: trunk works
-     +1: icing, jim, covener
-
   *) Correct the behavior and interaction between SSLProxyCheckPeer[CN|Name], 
      such that disabling either disables both, and that enabling either will
      trigger the more comprehensive SSLProxyCheckPeerName behavior.
index d31b1c24632bf6c753dbea09ba566f5fa6ab4030..5be5c5aaffd068e9f25486b3a68652921266e298 100644 (file)
@@ -560,6 +560,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':