- Patch #486278 by brianV: fixed headers sent by XML-RPC library.

merge-requests/26/head
Dries Buytaert 2009-06-12 08:44:45 +00:00
parent 3d64cb5eca
commit beef6cc657
1 changed files with 2 additions and 4 deletions

View File

@ -106,10 +106,8 @@ function xmlrpc_server_error($error, $message = FALSE) {
function xmlrpc_server_output($xml) {
$xml = '<?xml version="1.0"?>' . "\n" . $xml;
header('Connection: close');
header('Content-Length: ' . strlen($xml));
header('Content-Type: text/xml');
header('Date: ' . date('r'));
drupal_set_header('Content-Length', strlen($xml));
drupal_set_header('Content-Type', 'text/xml');
echo $xml;
exit;
}