From 0dfb819f96bcf162badfc2350ec0f1238a75c233 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 10 Oct 2024 17:33:30 +0200 Subject: Fix incorrect status code --- src/application/mystic/forum/utils/RequestUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/application/mystic/forum') diff --git a/src/application/mystic/forum/utils/RequestUtils.php b/src/application/mystic/forum/utils/RequestUtils.php index 796a476..5c6a485 100644 --- a/src/application/mystic/forum/utils/RequestUtils.php +++ b/src/application/mystic/forum/utils/RequestUtils.php @@ -23,7 +23,7 @@ final class RequestUtils { public static function ensureRequestMethod(string $method): void { if (!self::isRequestMethod($method)) { - http_response_code(415); + http_response_code(405); Messaging::error("Invalid request method " . self::getRequestMethod()); exit; } -- cgit v1.2.3