Fix #171: Allow sending body data in delete()

This commit is contained in:
Zach Borboa
2015-04-22 01:18:48 -07:00
parent 7f903ce06b
commit 70be5e4eb3
7 changed files with 42 additions and 9 deletions
+7
View File
@@ -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');