XML-RPC: `IXR_Server::output()` is notoriously bad at returning the right value for the `Content-Length` HTTP header. This header is not required, so we will remove it.

"We could of course remove the content-length header as it is not required" was suggested 10 years ago. The IXR library is not maintained. Our release is the latest, which occurred in 2010.

Fixes #2567.

Built from https://develop.svn.wordpress.org/trunk@34571


git-svn-id: http://core.svn.wordpress.org/trunk@34535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-26 03:11:24 +00:00
parent a0ccd4eae8
commit 78d846289f
2 changed files with 1 additions and 2 deletions

View File

@ -540,7 +540,6 @@ EOD;
$xml = '<?xml version="1.0"?>'."\n".$xml; $xml = '<?xml version="1.0"?>'."\n".$xml;
$length = strlen($xml); $length = strlen($xml);
header('Connection: close'); header('Connection: close');
header('Content-Length: '.$length);
if ($charset) if ($charset)
header('Content-Type: text/xml; charset='.$charset); header('Content-Type: text/xml; charset='.$charset);
else else

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34570'; $wp_version = '4.4-alpha-34571';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.