Browse Source

Merge branch 'task/500-hangs'

main
Jeroen De Meerleer 2 years ago
parent
commit
d695a7e97d
  1. 2
      runnow.php
  2. 2
      webcron.php

2
runnow.php

@ -42,7 +42,7 @@ $nosave = false;
if (filter_var($jobnameResult[0]["url"], FILTER_VALIDATE_URL)) {
$client = new \GuzzleHttp\Client();
$res = $client->request('GET', $jobnameResult[0]['url']);
$res = $client->request('GET', $jobnameResult[0]['url'], ['http_errors' => false]);
$statuscode = $res->getStatusCode();
$body = $res->getBody();

2
webcron.php

@ -67,7 +67,7 @@ if (file_exists("cache/get-services.trigger")) {
foreach ($results as $result) {
if (filter_var($result["url"], FILTER_VALIDATE_URL)) {
$res = $client->request('GET', $result['url']);
$res = $client->request('GET', $result['url'], ['http_errors' => false]);
$statuscode = $res->getStatusCode();
$body = $res->getBody();

Loading…
Cancel
Save