mirror of
https://github.com/daledavies/jump.git
synced 2026-07-05 10:28:14 +02:00
Use HEAD request when checking status to minimise bandwidth
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user