diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-12 08:44:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-12 08:44:45 +0000 |
commit | beef6cc65742a34b0c2955f0866a0d9faa96f75e (patch) | |
tree | 2f238ca8e9af447bf3e0ff1e81f7486e257dfe21 /includes/xmlrpcs.inc | |
parent | 3d64cb5ecae7c0d093e1343f87901769dc7d819e (diff) | |
download | brdo-beef6cc65742a34b0c2955f0866a0d9faa96f75e.tar.gz brdo-beef6cc65742a34b0c2955f0866a0d9faa96f75e.tar.bz2 |
- Patch #486278 by brianV: fixed headers sent by XML-RPC library.
Diffstat (limited to 'includes/xmlrpcs.inc')
-rw-r--r-- | includes/xmlrpcs.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/xmlrpcs.inc b/includes/xmlrpcs.inc index ffa5fd8c3..8588680ec 100644 --- a/includes/xmlrpcs.inc +++ b/includes/xmlrpcs.inc @@ -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; } |