Include XML headers in response.

This commit is contained in:
Andrew McMillan 2008-10-31 23:30:53 +13:00
parent 1fc443c9a4
commit 499d2e3856
6 changed files with 12 additions and 5 deletions

View File

@ -182,7 +182,7 @@ function handle_freebusy_request( $ic ) {
}
$response = new XMLElement( "schedule-response", $responses, $reply->GetXmlNsArray() );
$request->DoResponse( 200, $response->Render() );
$request->XMLResponse( 200, $response );
}

View File

@ -1,9 +1,11 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
Content-Length: 970
Content-Type: text/plain; charset="utf-8"
ETag: "a298c032f42212c4b1fdae7f3f3b44f3"
Content-Length: 1010
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<C:response>
<C:recipient>

View File

@ -1,9 +1,11 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
Content-Length: 1564
Content-Type: text/plain; charset="utf-8"
ETag: "f4577cb82f524d9e36fb43b7f363cbd7"
Content-Length: 1604
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<C:response>
<C:recipient>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<C:response>
<C:recipient>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<C:response>
<C:recipient>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<C:response>
<C:recipient>