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
This commit is contained in:
parent
0d3da57a9a
commit
faad66d510
@ -540,7 +540,6 @@ EOD;
|
||||
$xml = '<?xml version="1.0"?>'."\n".$xml;
|
||||
$length = strlen($xml);
|
||||
header('Connection: close');
|
||||
header('Content-Length: '.$length);
|
||||
if ($charset)
|
||||
header('Content-Type: text/xml; charset='.$charset);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user