Make WordPress Core

Ticket #8249: 8249.r9729.diff

File 8249.r9729.diff, 448 bytes (added by jacobsantos, 17 years ago)

patch based off of r9729.

  • http.php

     
    250250                                $r['headers']['Content-Length'] = strlen($r['body']);
    251251                        }
    252252
     253                        if ( ! isset( $r['headers']['Content-Length'] ) && ! isset( $r['headers']['content-length'] ) )
     254                                $r['headers']['Content-Length'] = strlen($r['body']);
     255
    253256                        $transports = WP_Http::_postTransport($r);
    254257                }
    255258