From fcc53e993b5302ed2dfdeec4ed73b13a60f5c862 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 16 Dec 2008 22:07:18 +0000 Subject: [PATCH] Set Content-Length to 0 for null body requests. Props Jalada. see #8605 git-svn-id: https://develop.svn.wordpress.org/trunk@10211 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/http.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/http.php b/wp-includes/http.php index f452a610d6..aee1bd4271 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -242,6 +242,7 @@ class WP_Http { } if ( is_null($r['body']) ) { + $r['headers']['Content-Length'] = 0; $transports = WP_Http::_getTransport($r); } else { if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) {