mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
chore: Use constant for default value
Co-authored-by: Thomas Citharel <nextcloud@tcit.fr> Signed-off-by: Pablo Zmdl <57864086+pabzm@users.noreply.github.com>
This commit is contained in:
parent
280adb3e94
commit
742764bd4e
1 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ namespace OCA\DAV\CardDAV;
|
|||
|
||||
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;
|
||||
|
|
@ -155,7 +156,7 @@ class SyncService {
|
|||
'auth' => [$userName, $sharedSecret],
|
||||
'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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue