From: Mark Bergsma Date: Mon, 16 Oct 2006 01:26:14 +0000 (+0000) Subject: Purge using HEAD instead of GET, as Squid can match a GET object using HEAD too... X-Git-Tag: 1.31.0-rc.0~55476 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=32308a5de228f5b138e8e002d1f9ec922c6ccfa8;p=lhc%2Fweb%2Fwiklou.git Purge using HEAD instead of GET, as Squid can match a GET object using HEAD too... --- diff --git a/includes/SquidUpdate.php b/includes/SquidUpdate.php index 26e00e2464..3821cd51fb 100644 --- a/includes/SquidUpdate.php +++ b/includes/SquidUpdate.php @@ -222,8 +222,8 @@ class SquidUpdate { // Opcode 'CLR', no response desired, no auth $htcpTransID = rand(); - $htcpSpecifier = pack( 'na3na*na8n', - 3, 'GET', strlen( $url ), $url, + $htcpSpecifier = pack( 'na4na*na8n', + 4, 'HEAD', strlen( $url ), $url, 8, 'HTTP/1.0', 0 ); $htcpDataLen = 8 + 2 + strlen( $htcpSpecifier );