aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client/Client.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2024-10-10 07:54:46 +0200
committerThomas Citharel <tcit@tcit.fr>2024-10-11 10:57:02 +0200
commitdcd27fd986427a8ccfbf0a9d01568cf7918b7659 (patch)
tree6bd4336bc64e0071f3ced2a147677c9a6f28c503 /lib/private/Http/Client/Client.php
parentd013a13eb5b546f2f02ea64a6d64e22eac79cd18 (diff)
downloadnextcloud-server-add-default-request-timeout-const.tar.gz
nextcloud-server-add-default-request-timeout-const.zip
feat(http-client): expose default request timeout constant to be used instead of magic number 30add-default-request-timeout-const
Will be used to set default where we are able to override the default timeout. See https://github.com/nextcloud/server/pull/48418 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/private/Http/Client/Client.php')
-rw-r--r--lib/private/Http/Client/Client.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php
index 62209ff9040..c3f8f589827 100644
--- a/lib/private/Http/Client/Client.php
+++ b/lib/private/Http/Client/Client.php
@@ -53,7 +53,7 @@ class Client implements IClient {
$defaults = [
RequestOptions::VERIFY => $this->getCertBundle(),
- RequestOptions::TIMEOUT => 30,
+ RequestOptions::TIMEOUT => IClient::DEFAULT_REQUEST_TIMEOUT,
];
$options['nextcloud']['allow_local_address'] = $this->isLocalAddressAllowed($options);