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:
parent
cab8c8f407
commit
f2edc4b2c6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user