using HTTP/1.1, not HTTP/1.0 for PURGE
This commit is contained in:
parent
8cfc5460d3
commit
a38831a1ef
@ -332,7 +332,7 @@
|
|||||||
$host = &$purge[0];
|
$host = &$purge[0];
|
||||||
$port = &$purge[1];
|
$port = &$purge[1];
|
||||||
$http_host = isset($purge[2]) ? $purge[2] : $_SERVER['HTTP_HOST'];
|
$http_host = isset($purge[2]) ? $purge[2] : $_SERVER['HTTP_HOST'];
|
||||||
$request = "PURGE {$uri} HTTP/1.0\r\nHost: {$http_host}\r\nUser-Agent: Tinyboard\r\nConnection: Close\r\n\r\n";
|
$request = "PURGE {$uri} HTTP/1.1\r\nHost: {$http_host}\r\nUser-Agent: Tinyboard\r\nConnection: Close\r\n\r\n";
|
||||||
if($fp = fsockopen($host, $port, $errno, $errstr, $config['purge_timeout'])) {
|
if($fp = fsockopen($host, $port, $errno, $errstr, $config['purge_timeout'])) {
|
||||||
fwrite($fp, $request);
|
fwrite($fp, $request);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user