Fix response document structure. Return status 207 if we are returning a

potentially multstatus response document.
This commit is contained in:
Andrew McMillan 2006-12-07 00:17:27 +13:00
parent d449e1f836
commit 384d080a6d

View File

@ -307,7 +307,7 @@ class CalDAVRequest
))
));
}
$response = new XMLElement( "multistatus", new XMLElement( 'response', $response), array('xmlns'=>'DAV:') );
$response = new XMLElement( "multistatus", $response, array('xmlns'=>'DAV:') );
$xmldoc = $response->Render(0,'<?xml version="1.0" encoding="utf-8" ?>');
$this->DoResponse( 207, $xmldoc, 'text/xml; charset="utf-8"' );
// Which we won't come back from