fix(updatecheck): Don't wait 120s for a response of updater.nextcloud.com

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2023-08-28 08:08:42 +02:00
parent 71578e452f
commit a5d751cda8
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -123,7 +123,9 @@ class VersionCheck {
*/
protected function getUrlContent($url) {
$client = $this->clientService->newClient();
$response = $client->get($url);
$response = $client->get($url, [
'timeout' => 5,
]);
return $response->getBody();
}