diff --git a/library/Icingadb/Common/CommandActions.php b/library/Icingadb/Common/CommandActions.php index af7d19428..eb161995f 100644 --- a/library/Icingadb/Common/CommandActions.php +++ b/library/Icingadb/Common/CommandActions.php @@ -215,6 +215,7 @@ protected function handleApiRequest(CommandForm $form) }); $form->handleRequest($this->getServerRequest()); + $this->assertHttpMethod($form->getMethod()); $errors = []; foreach ($form->getElements() as $element) {