Make WordPress Core

Changeset 34571


Ignore:
Timestamp:
09/26/2015 03:10:23 AM (9 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-IXR.php

    r32990 r34571  
    541541        $length = strlen($xml);
    542542        header('Connection: close');
    543         header('Content-Length: '.$length);
    544543        if ($charset)
    545544            header('Content-Type: text/xml; charset='.$charset);
Note: See TracChangeset for help on using the changeset viewer.