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

git-svn-id: http://svn.automattic.com/wordpress/trunk@20183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2012-03-15 05:33:38 +00:00
parent 1ee1b90e05
commit ef6661a628
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;
}