Use HEAD request when checking status to minimise bandwidth

This commit is contained in:
Dale Davies
2022-07-26 13:33:30 +01:00
parent 9c3cf9ab99
commit 651217a134

View File

@@ -50,7 +50,7 @@ class Status {
]);
// Try to connect to site and determine status.
try {
if($client->request('GET', $this->site->url)) {
if ($client->request('HEAD', $this->site->url)) {
$status = self::STATUS_ONLINE;
}
} catch (\GuzzleHttp\Exception\ConnectException) {