mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-09 13:35:31 +00:00
Fix #171: Allow sending body data in delete()
This commit is contained in:
@@ -223,6 +223,13 @@ if ($test == 'http_basic_auth') {
|
||||
|
||||
echo 'OK';
|
||||
exit;
|
||||
} elseif ($test === 'delete_with_body') {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array(
|
||||
'get' => $_GET,
|
||||
'post' => $_POST,
|
||||
));
|
||||
exit;
|
||||
}
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
|
||||
Reference in New Issue
Block a user