From 78d846289f696058a13d36cbabfc3ef310347912 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 26 Sep 2015 03:11:24 +0000 Subject: [PATCH] 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 --- wp-includes/class-IXR.php | 1 - wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index ec3f70ca71..7cc4c20fb9 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -540,7 +540,6 @@ EOD; $xml = ''."\n".$xml; $length = strlen($xml); header('Connection: close'); - header('Content-Length: '.$length); if ($charset) header('Content-Type: text/xml; charset='.$charset); else diff --git a/wp-includes/version.php b/wp-includes/version.php index 0e5a563264..9742b455be 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.