Ticket #10855: 10855.diff
File 10855.diff, 727 bytes (added by , 16 years ago) |
---|
-
wp-includes/http.php
1121 1121 case 'HEAD': 1122 1122 $r['method'] = HTTP_METH_HEAD; 1123 1123 break; 1124 case 'PUT': 1125 $r['method'] = HTTP_METH_PUT; 1126 break; 1124 1127 case 'GET': 1125 1128 default: 1126 1129 $r['method'] = HTTP_METH_GET; … … 1306 1309 curl_setopt( $handle, CURLOPT_POST, true ); 1307 1310 curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); 1308 1311 break; 1312 case 'PUT': 1313 curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); 1314 curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); 1315 break; 1309 1316 } 1310 1317 1311 1318 if ( true === $r['blocking'] )