Deprecate $wgSquidPurgeUseHostHeader
authorC. Scott Ananian <cscott@cscott.net>
Fri, 19 Oct 2018 15:40:17 +0000 (11:40 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 19 Oct 2018 15:44:18 +0000 (11:44 -0400)
This header supports Squid in forward-proxy mode using HTTP/1.0
HTTP headers.  It is not used in production.

Change-Id: I99646c9c5519bd55b3d4988306e379f89d413bdc

RELEASE-NOTES-1.33
includes/DefaultSettings.php
includes/clientpool/SquidPurgeClient.php

index d487cf6..5da6863 100644 (file)
@@ -58,6 +58,8 @@ because of Phabricator reports.
 === Deprecations in 1.33 ===
 * The configuration option $wgUseESI has been deprecated, and is expected
   to be removed in a future release.
+* The configuration option $wgSquidPurgeUseHostHeader has been deprecated,
+  and is expected to be removed in a future release.
 * …
 
 === Other changes in 1.33 ===
index 5e28036..1e15524 100644 (file)
@@ -2850,6 +2850,7 @@ $wgSquidServersNoPurge = [];
  * reverse).
  *
  * @since 1.21
+ * @deprecated since 1.33, will always be true in a future release.
  */
 $wgSquidPurgeUseHostHeader = true;
 
index a531cd1..36d72c2 100644 (file)
@@ -211,6 +211,7 @@ class SquidPurgeClient {
                        $request[] = "PURGE $path HTTP/1.1";
                        $request[] = "Host: $host";
                } else {
+                       wfDeprecated( '$wgSquidPurgeUseHostHeader = false', '1.33' );
                        $request[] = "PURGE $url HTTP/1.0";
                }
                $request[] = "Connection: Keep-Alive";