diff options
author | Jonas Kohl | 2024-10-10 17:33:30 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-10-10 17:33:30 +0200 |
commit | 0dfb819f96bcf162badfc2350ec0f1238a75c233 (patch) | |
tree | e0dc6b8122fb5539a91cb5e9f47195fb8ba981c5 /src/application/mystic/forum/utils/RequestUtils.php | |
parent | 64b1ec0fabbf7328a79a20ff58502ebfa80fad8b (diff) |
Fix incorrect status codev0.4.0feature/file-based-routing
Diffstat (limited to 'src/application/mystic/forum/utils/RequestUtils.php')
-rw-r--r-- | src/application/mystic/forum/utils/RequestUtils.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |