WP_HTTP: Send the body with custom method requests when using cURL. Fixes #18589

git-svn-id: https://develop.svn.wordpress.org/trunk@20183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2012-03-15 05:33:38 +00:00
parent cab8c8f407
commit f2edc4b2c6
1 changed files with 2 additions and 0 deletions

View File

@ -1054,6 +1054,8 @@ class WP_Http_Curl {
break;
default:
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] );
if ( ! empty( $r['body'] ) )
curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] );
break;
}