Use null instead of 0 when setting content length. Props noel. fixes #10783

git-svn-id: http://svn.automattic.com/wordpress/trunk@11932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-09-14 20:49:18 +00:00
parent e789271d81
commit 203de75d3d

View File

@ -280,7 +280,7 @@ class WP_Http {
if ( is_null($r['body']) ) {
// Some servers fail when sending content without the content-length
// header being set.
$r['headers']['Content-Length'] = 0;
$r['headers']['Content-Length'] = null;
$transports = WP_Http::_getTransport($r);
} else {
if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) {