From 68573916231622107d8b6eee6b71a16be71c86b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 19 May 2022 14:53:17 +0200 Subject: [PATCH] Remove obsolete check for `ResponseInterface` in RequestHandler::handle() --- .../files/lib/system/request/RequestHandler.class.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 3e691fcce4..39c33a2176 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -100,12 +100,9 @@ class RequestHandler extends SingletonFactory \header('cross-origin-resource-policy: same-site'); } - // start request - $result = $this->getActiveRequest()->execute(); - - if ($result instanceof ResponseInterface) { - $this->sendPsr7Response($result); - } + $this->sendPsr7Response( + $this->getActiveRequest()->execute() + ); } catch (NamedUserException $e) { $e->show(); -- 2.20.1