Support custom HTTP Methods in WP_Http_Curl. Brings it in line with the other HTTP transports of respecting the requested method. Props zx2c4. Fixes #18589
git-svn-id: https://develop.svn.wordpress.org/trunk@19696 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2cc75b6a05
commit
0bef3ee02a
@ -1052,6 +1052,9 @@ class WP_Http_Curl {
|
||||
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' );
|
||||
curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] );
|
||||
break;
|
||||
default:
|
||||
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] );
|
||||
break;
|
||||
}
|
||||
|
||||
if ( true === $r['blocking'] )
|
||||
|
Loading…
Reference in New Issue
Block a user