From faad66d510b0d34b5d2d6c432ed0b8a6e2633b9c Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 26 Sep 2015 03:10:23 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@34571 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-IXR.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-includes/class-IXR.php b/src/wp-includes/class-IXR.php index ec3f70ca71..7cc4c20fb9 100644 --- a/src/wp-includes/class-IXR.php +++ b/src/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