altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1681289.patch

008793
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
008793
index a78224b..e672e4a 100644
008793
--- a/modules/proxy/proxy_util.c
008793
+++ b/modules/proxy/proxy_util.c
008793
@@ -2260,8 +2260,12 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
008793
      * The scheme handler decides if this is permanent or
008793
      * short living pool.
008793
      */
008793
-    /* are we connecting directly, or via a proxy? */
008793
-    if (!proxyname) {
008793
+    /* Unless we are connecting the backend via a (forward Proxy)Remote, we
008793
+     * have to use the original form of the URI (non absolute), but this is
008793
+     * also the case via a remote proxy using the CONNECT method since the
008793
+     * original request (and URI) is to be embedded in the body.
008793
+     */
008793
+    if (!proxyname || conn->is_ssl) {
008793
         *url = apr_pstrcat(p, uri->path, uri->query ? "?" : "",
008793
                            uri->query ? uri->query : "",
008793
                            uri->fragment ? "#" : "",