From 667779223adbd987e87822a4eba0863a05c8951b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 14 Sep 2009 20:49:18 +0000 Subject: [PATCH] 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 --- wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 3c39d687a4..2808335377 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -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'] ) ) {