Skip to content
Snippets Groups Projects
Commit beef6cc6 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 3d64cb5e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment