Merge pull request #40071 from nextcloud/bugfix/noid/dont-block-admin-page-when-updater.nextcloud.com-is-down

fix(updatecheck): Don't wait 120s for a response of updater.nextcloud…
pull/39411/head
Arthur Schiwon 2023-11-22 15:18:18 +07:00 committed by GitHub
commit 99f945622f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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