Skip to content

Commit

Permalink
Merge pull request #5 from infostreams/patch-5
Browse files Browse the repository at this point in the history
Add omitted namespace
  • Loading branch information
smarcet authored Mar 3, 2018
2 parents 30c8a32 + e400697 commit 416e54e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/Facade/Requests/AbstractPropFindWebDAVRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ public function getContent()
$service = new Service();

$service->namespaceMap = [
'DAV:' => 'D',
'urn:ietf:params:xml:ns:caldav' => 'C'
'DAV:' => 'D',
'urn:ietf:params:xml:ns:caldav' => 'C',
'http://calendarserver.org/ns/' => 'CS',
];

$elements = [];
foreach( $this->properties as $val ) {
$elements[] = [ $val => ""];
$elements[] = [ $val => "" ];
}
return $service->write('{DAV:}propfind',
[
Expand Down
2 changes: 1 addition & 1 deletion src/Facade/Requests/GetCalendarRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(){
'{DAV:}resourcetype',
'{DAV:}sync-token',
'{DAV:}getetag',
'{http://calendarserver.org/ns/:}getctag',
'{http://calendarserver.org/ns/}getctag',
];
}
}
2 changes: 1 addition & 1 deletion src/Facade/Requests/GetCalendarsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(){
$this->properties = [
'{DAV:}resourcetype',
'{DAV:}displayname',
'{http://calendarserver.org/ns/:}getctag',
'{http://calendarserver.org/ns/}getctag',
'{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set',
];
}
Expand Down

0 comments on commit 416e54e

Please sign in to comment.