Index: class-wp-xmlrpc-server.php
===================================================================
--- class-wp-xmlrpc-server.php	(revision 32487)
+++ class-wp-xmlrpc-server.php	(working copy)
@@ -5932,4 +5932,29 @@
 		 */
 		return apply_filters( 'xmlrpc_pingback_error', new IXR_Error( $code, $message ) );
 	}
+	
+	function output( $xml ) {
+		$charset = function_exists('get_option') ? get_option('blog_charset') : '';
+
+		if ( $charset ) {
+			$xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml;
+		} else {
+			$xml = '<?xml version="1.0"?>' . "\n" . $xml;
+		}
+
+		header( 'Connection: close' );
+
+		if( $charset ) {
+			header( 'Content-Type: text/xml; charset=' . $charset );
+		} else {
+			header( 'Content-Type: text/xml' );
+		}
+
+		header( 'Date: ' . date_i18n( 'r' ) );
+
+		echo $xml;
+
+		exit;
+	}
+
 }
