Changeset 11977
- Timestamp:
- 09/26/2009 10:52:42 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/http.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r11937 r11977 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: … … 1305 1308 case 'POST': 1306 1309 curl_setopt( $handle, CURLOPT_POST, true ); 1310 curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); 1311 break; 1312 case 'PUT': 1313 curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); 1307 1314 curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); 1308 1315 break;
Note: See TracChangeset
for help on using the changeset viewer.