Merge pull request #42078 from nextcloud/backport/40071/stable27

[stable27] fix(updatecheck): Don't wait 120s for a response of updater.nextcloud…
This commit is contained in:
Arthur Schiwon 2023-12-07 10:00:26 +01:00 committed by GitHub
commit 41f31f2e1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}