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

git-svn-id: https://develop.svn.wordpress.org/trunk@11932 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-09-14 20:49:18 +00:00
parent 141bbe94a7
commit 667779223a
1 changed files with 1 additions and 1 deletions

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'] ) ) {