From 203de75d3d5652f563f22bcbc979d41bf1951ff8 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@11932 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 3c39d687a..280833537 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'] ) ) {