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