From: Mark Bergsma Date: Sun, 15 Oct 2006 18:53:08 +0000 (+0000) Subject: Change the HTCP purge method from 'NONE' to 'GET', to make X-Git-Tag: 1.31.0-rc.0~55483 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=92a5e0aa06ea5016b038a59e205e615cb76fb45e;p=lhc%2Fweb%2Fwiklou.git Change the HTCP purge method from 'NONE' to 'GET', to make HTCP purges work with Squid 2.6 again. --- diff --git a/includes/SquidUpdate.php b/includes/SquidUpdate.php index 37d97e0192..26e00e2464 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( 'na4na*na8n', - 4, 'NONE', strlen( $url ), $url, + $htcpSpecifier = pack( 'na3na*na8n', + 3, 'GET', strlen( $url ), $url, 8, 'HTTP/1.0', 0 ); $htcpDataLen = 8 + 2 + strlen( $htcpSpecifier );