Consistency of XML response is probably a good idea.

This commit is contained in:
Andrew McMillan 2006-12-04 13:30:21 +13:00
parent 77066997af
commit 83e6f20e86
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ else {
}
// dbg_log_array( "PROPFIND", "XML", $multistatus, true );
$xmldoc = '<?xml version="1.0" encoding="UTF-8" ?>'."\n" . $multistatus->Render();
$xmldoc = $multistatus->Render(0,'<?xml version="1.0" encoding="utf-8" ?>');
$etag = md5($xmldoc);
header("ETag: \"$etag\"");
$request->DoResponse( 207, $xmldoc, 'text/xml; charset="utf-8"' );

View File

@ -279,7 +279,7 @@ else {
}
$multistatus = new XMLElement( "multistatus", $responses, array('xmlns'=>'DAV:') );
$xmldoc = $multistatus->Render( 0, '<?xml version="1.0" encoding="UTF-8" ?>');
$xmldoc = $multistatus->Render(0,'<?xml version="1.0" encoding="utf-8" ?>');
$etag = md5($xmldoc);
header("ETag: \"$etag\"");
$request->DoResponse( 207, $xmldoc, 'text/xml; charset="utf-8"' );