Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Aug 9, 2023
1 parent db2f6b3 commit d815f2d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Checks/Traits/ChecksUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,19 @@ public function run(): Result
throw new Exception('URL not set');
}

try {
// try {
$request = Http::timeout($this->timeout)
->withHeaders($this->headers)
->retry($this->retryTimes)
->send($this->method, $this->url);

var_dump($request->successful());
if (! $request->successful()) {
return $this->failedResult();
// return $this->failedResult();
}
} catch (Exception) {
return $this->failedResult();
}
// } catch (Exception) {
// return $this->failedResult();
// }

return Result::new()
->ok();
Expand Down

0 comments on commit d815f2d

Please sign in to comment.