WP_Http_ExtHTTP variable fix. Don't pass an empty array to http_request, props mdawaffe, fixes #13730.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
931cecae63
commit
d37c4b0ebc
|
@ -280,6 +280,7 @@ class WP_Http {
|
|||
$r['headers']['Accept-Encoding'] = WP_Http_Encoding::accept_encoding();
|
||||
|
||||
if ( empty($r['body']) ) {
|
||||
$r['body'] = null;
|
||||
// Some servers fail when sending content without the content-length header being set.
|
||||
// Also, to fix another bug, we only send when doing POST and PUT and the content-length
|
||||
// header isn't already set.
|
||||
|
|
Loading…
Reference in New Issue