altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1651658.patch

008793
--- a/modules/proxy/mod_proxy_fcgi.c	2015/01/14 13:22:50	1651657
008793
+++ b/modules/proxy/mod_proxy_fcgi.c	2015/01/14 13:24:10	1651658
008793
@@ -204,9 +204,19 @@
008793
     apr_status_t rv;
008793
     apr_size_t len;
008793
     int i, numenv;
008793
+    char *proxyfilename = r->filename;
008793
+
008793
+    /* Strip balancer prefix */
008793
+    if (r->filename && !strncmp(r->filename, "proxy:balancer://", 17)) { 
008793
+        char *newfname = apr_pstrdup(r->pool, r->filename+17);
008793
+        newfname = ap_strchr(newfname, '/');
008793
+        r->filename  = newfname;
008793
+    }
008793
 
008793
     ap_add_common_vars(r);
008793
     ap_add_cgi_vars(r);
008793
+ 
008793
+    r->filename = proxyfilename;
008793
 
008793
     /* XXX are there any FastCGI specific env vars we need to send? */
008793