From 9469ffb88b5d2bea3c90e0cdde626f45e423d72b Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Mon, 13 Aug 2018 15:23:26 +0200 Subject: [PATCH] DELETE: Change HTTP Status Code to 204 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index b9c1038..0916b61 100644 --- a/index.php +++ b/index.php @@ -104,7 +104,7 @@ Flight::route("GET|DELETE /polls/@id:[a-fA-F0-9]+/@token:[a-fA-F0-9]+", function Flight::json(format_poll($poll), 204); else { - Flight::redirect('/'); + Flight::redirect('/', 204); } } else