diff --git a/wp-includes/http.php b/wp-includes/http.php index e15f0797d4..cffc88e853 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -250,6 +250,9 @@ class WP_Http { $r['headers']['Content-Length'] = strlen($r['body']); } + if ( ! isset( $r['headers']['Content-Length'] ) && ! isset( $r['headers']['content-length'] ) ) + $r['headers']['Content-Length'] = strlen($r['body']); + $transports = WP_Http::_postTransport($r); }