Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Capabilities.php')
-rw-r--r--lib/Capabilities.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Capabilities.php b/lib/Capabilities.php
index 439930c0..861231ec 100644
--- a/lib/Capabilities.php
+++ b/lib/Capabilities.php
@@ -104,7 +104,12 @@ class Capabilities implements ICapability {
$client = $this->clientService->newClient();
try {
- $response = $client->get($capabilitiesEndpoint);
+ $response = $client->get(
+ $capabilitiesEndpoint,
+ [
+ 'timeout' => 5,
+ ]
+ );
} catch (\Exception $e) {
return [];
}