]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge of r1851146 from trunk:
authorStefan Eissing <icing@apache.org>
Thu, 18 Jul 2019 13:57:04 +0000 (13:57 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 18 Jul 2019 13:57:04 +0000 (13:57 +0000)
  *) cache_storage: be consistent when building a cache key value when CacheKeyBaseURL is used with
                    an URL that contains a :port.
                    PR 53915 [Rein Tollevik <rein basefarm.no>]

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

STATUS
modules/cache/cache_storage.c

diff --git a/STATUS b/STATUS
index 54913c9dfbce86afa86418d5760e3e147690341f..609efb1dd7a1b681b247bb801190a0bdd29c6a12 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -127,13 +127,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) cache_storage: be consistent when building a cache key value when CacheKeyBaseURL is used with
-                    an URL that contains a :port.
-                    PR 53915 [Rein Tollevik <rein basefarm.no>]
-     trunk: http://svn.apache.org/r1851146
-     2.4.x patch: svn merge -c 1851146 ^/httpd/httpd/trunk .
-     +1: jailletc36, jim, icing
-
   *) mod_proxy_hcheck fix for BZ 60948
      trunk: http://svn.apache.org/r1862014
      2.4.x: svn merge -c 1862014 ^/httpd/httpd/trunk .
index 41f638c025ccd8d612b67fe27cded4159706c33b..dfda34b1c1d01a16d4a14c311db3b121b3e8eb94 100644 (file)
@@ -270,8 +270,7 @@ int cache_select(cache_request_rec *cache, request_rec *r)
              * language negotiated document in a different language by mistake.
              *
              * This code makes the assumption that the storage manager will
-             * cache the req_hdrs if the response contains a Vary
-             * header.
+             * cache the req_hdrs if the response contains a Vary header.
              *
              * RFC2616 13.6 and 14.44 describe the Vary mechanism.
              */
@@ -549,7 +548,7 @@ static apr_status_t cache_canonicalise_key(request_rec *r, apr_pool_t* p,
     }
     else {
         if (conf->base_uri && conf->base_uri->port_str) {
-            port_str = conf->base_uri->port_str;
+            port_str = apr_pstrcat(p, ":", conf->base_uri->port_str, NULL);
         }
         else if (conf->base_uri && conf->base_uri->hostname) {
             port_str = "";