]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) mod_rewrite: Make rewrite websocket aware to allow proxying.
authorJim Jagielski <jim@apache.org>
Wed, 2 Oct 2013 16:38:39 +0000 (16:38 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 2 Oct 2013 16:38:39 +0000 (16:38 +0000)
     PR 55598. [Chris Harris <chris.harris kitware com>]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1528556 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/mappers/mod_rewrite.c

diff --git a/CHANGES b/CHANGES
index a63ab93effe27a07804afe793f9b97feaba76ef1..808c44a29991fbbb532f145eee342cd4fe18c4b2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_rewrite: Make rewrite websocket aware to allow proxying.
+     PR 55598. [Chris Harris <chris.harris kitware com>]
+
   *) mod_ldap: When looking up sub-groups, use an implicit objectClass=*
      instead of an explicit cn=* filter. [David Hawes <dhawes vt.edu>]
 
index 5627e66f9430127248754a598f617d6684bdc92d..27716a04036d2e86ae9dc01b6f315b995f209f52 100644 (file)
@@ -589,6 +589,18 @@ static unsigned is_absolute_uri(char *uri, int *supportsqs)
             return 7;
         }
         break;
+
+    case 'w':
+    case 'W':
+        if (!strncasecmp(uri, "s://", 4)) {        /* ws://     */
+            *sqs = 1;
+            return 5;
+        }
+        else if (!strncasecmp(uri, "ss://", 5)) {  /* wss://    */
+            *sqs = 1;
+            return 6;
+        }
+        break;
     }
 
     return 0;