]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_proxy_http2: ap_proxy_determine_connection()'s given &url is in/out.
authorYann Ylavic <ylavic@apache.org>
Wed, 26 Jun 2024 00:15:39 +0000 (00:15 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 26 Jun 2024 00:15:39 +0000 (00:15 +0000)
* modules/http2/mod_proxy_http2.c(proxy_http2_handler):
  Restart from the original URL on reconnect.

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

modules/http2/mod_proxy_http2.c

index ebf8f61b81b8d17f52023accec16b56ed46fccc0..e5cb0babb598e48e3f2b5c6a0c6148064028c700 100644 (file)
@@ -317,7 +317,7 @@ static int proxy_http2_handler(request_rec *r,
                                apr_port_t proxyport)
 {
     const char *proxy_func;
-    char *locurl = url, *u;
+    char *locurl, *u;
     apr_size_t slen;
     int is_ssl = 0;
     apr_status_t status;
@@ -382,6 +382,7 @@ run_connect:
         goto cleanup;
     }
 
+    locurl = url;
     ctx->p_conn->is_ssl = ctx->is_ssl;
 
     /* Step One: Determine the URL to connect to (might be a proxy),