DELETE: Change HTTP Status Code to 204

This commit is contained in:
Tagadda 2018-08-13 15:23:26 +02:00
parent 7a29c6265b
commit 9469ffb88b
1 changed files with 1 additions and 1 deletions

View File

@ -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); Flight::json(format_poll($poll), 204);
else else
{ {
Flight::redirect('/'); Flight::redirect('/', 204);
} }
} }
else else