From 384d080a6d23779f8b1a746da3037a9f62b8d0eb Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 7 Dec 2006 00:17:27 +1300 Subject: [PATCH] Fix response document structure. Return status 207 if we are returning a potentially multstatus response document. --- inc/CalDAVRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 16f89adb..54958f5e 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -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,''); $this->DoResponse( 207, $xmldoc, 'text/xml; charset="utf-8"' ); // Which we won't come back from