We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d537050 commit b42bca1Copy full SHA for b42bca1
lib/private/Http/Client/Client.php
@@ -53,7 +53,7 @@ private function buildRequestOptions(array $options): array {
53
54
$defaults = [
55
RequestOptions::VERIFY => $this->getCertBundle(),
56
- RequestOptions::TIMEOUT => 30,
+ RequestOptions::TIMEOUT => IClient::DEFAULT_REQUEST_TIMEOUT,
57
];
58
59
$options['nextcloud']['allow_local_address'] = $this->isLocalAddressAllowed($options);
lib/public/Http/Client/IClient.php
@@ -14,6 +14,14 @@
14
* @since 8.1.0
15
*/
16
interface IClient {
17
+
18
+ /**
19
+ * Default request timeout for requests
20
+ *
21
+ * @since 31.0.0
22
+ */
23
+ public const DEFAULT_REQUEST_TIMEOUT = 30;
24
25
/**
26
* Sends a GET request
27
* @param string $uri
0 commit comments