From 0b710ce4fb7443ecdac83a058c0de0cf4dfe8772 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 27 Jul 2024 13:15:41 +0000 Subject: [PATCH] Issue 14325: Process "post" requests only once --- src/BaseModule.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BaseModule.php b/src/BaseModule.php index 2f511bc547..4f7a0feb5c 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -224,17 +224,17 @@ abstract class BaseModule implements ICanHandleRequests switch ($this->args->getMethod()) { case Router::DELETE: $this->delete($request); - break; + return $this->response->generate(); case Router::PATCH: $this->patch($request); - break; + return $this->response->generate(); case Router::POST: Core\Hook::callAll($this->args->getModuleName() . '_mod_post', $request); $this->post($request); - break; + return $this->response->generate(); case Router::PUT: $this->put($request); - break; + return $this->response->generate(); } $timestamp = microtime(true);