Commit beef6cc6 authored by Dries's avatar Dries
Browse files

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

parent 3d64cb5e
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment