Skip to content

Commit

Permalink
chore: Use constant for default value
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Citharel <nextcloud@tcit.fr>
Signed-off-by: Pablo Zmdl <57864086+pabzm@users.noreply.github.com>
  • Loading branch information
pabzm and tcitworld committed Oct 15, 2024
1 parent cd49944 commit 69a28ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dav/lib/CardDAV/SyncService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use OCP\AppFramework\Db\TTransactional;
use OCP\AppFramework\Http;
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\IDBConnection;
Expand Down Expand Up @@ -126,7 +127,7 @@ protected function requestSyncReport(string $url, string $userName, string $addr
'base_uri' => $url,
'body' => $this->buildSyncCollectionRequestBody($syncToken),
'headers' => ['Content-Type' => 'application/xml'],
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', 30)
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', IClient::DEFAULT_REQUEST_TIMEOUT)
];

$response = $client->request(
Expand Down

0 comments on commit 69a28ca

Please sign in to comment.