mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-25 09:28:42 +00:00
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:
parent
1ee1b90e05
commit
ef6661a628
@ -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…
x
Reference in New Issue
Block a user