WordPress.org

Make WordPress Core

Ticket #10783: http.php.patch

File http.php.patch, 534 bytes (added by noel, 9 years ago)

http.php patch

  • wp-includes/http.php

     
    280280                if ( is_null($r['body']) ) {
    281281                        // Some servers fail when sending content without the content-length
    282282                        // header being set.
    283                         $r['headers']['Content-Length'] = 0;
     283                        $r['headers']['Content-Length'] = null;
    284284                        $transports = WP_Http::_getTransport($r);
    285285                } else {
    286286                        if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) {