mirror of
https://github.com/nextcloud/server.git
synced 2026-07-04 15:27:31 -04:00
create urls in a way that sabredav handles it correctly
This commit is contained in:
parent
94856cb892
commit
fa561071d2
1 changed files with 2 additions and 2 deletions
|
|
@ -99,14 +99,14 @@ class SyncService {
|
|||
*/
|
||||
protected function requestSyncReport($url, $userName, $sharedSecret, $syncToken) {
|
||||
$settings = [
|
||||
'baseUri' => $url,
|
||||
'baseUri' => $url . '/',
|
||||
'userName' => $userName,
|
||||
'password' => $sharedSecret,
|
||||
];
|
||||
$client = new Client($settings);
|
||||
$client->setThrowExceptions(true);
|
||||
|
||||
$addressBookUrl = "/remote.php/dav/addressbooks/system/system/system";
|
||||
$addressBookUrl = "remote.php/dav/addressbooks/system/system/system";
|
||||
$body = $this->buildSyncCollectionRequestBody($syncToken);
|
||||
|
||||
$response = $client->request('REPORT', $addressBookUrl, $body, [
|
||||
|
|
|
|||
Loading…
Reference in a new issue