create urls in a way that sabredav handles it correctly

This commit is contained in:
Björn Schießle 2016-01-11 16:28:54 +01:00 committed by Thomas Müller
parent 94856cb892
commit fa561071d2

View file

@ -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, [