WP_Http_ExtHTTP variable fix. Don't pass an empty array to http_request, props mdawaffe, fixes #13730.
git-svn-id: https://develop.svn.wordpress.org/trunk@16450 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1c1f8d45d4
commit
5183bee738
@ -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
Block a user