From 251e0c6932e196e118d1abc12ccd1c4513dc1c10 Mon Sep 17 00:00:00 2001 From: byshen-dev Date: Sat, 1 May 2021 22:40:33 -0700 Subject: [PATCH] Add log message when the httpd method is not allowed --- cherokee/connection.c | 1 + cherokee/error_list.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cherokee/connection.c b/cherokee/connection.c index e11c01c3f..901e938ec 100644 --- a/cherokee/connection.c +++ b/cherokee/connection.c @@ -2425,6 +2425,7 @@ cherokee_connection_check_http_method (cherokee_connection_t *conn, cherokee_con if (config_entry->handler_methods == http_options) return ret_ok; + LOG_ERROR_S (CHEROKEE_ERROR_CONNECTION_HTTP_METHOD); /* Set the error */ conn->error_code = http_method_not_allowed; diff --git a/cherokee/error_list.py b/cherokee/error_list.py index 146c6f90c..80874597a 100644 --- a/cherokee/error_list.py +++ b/cherokee/error_list.py @@ -981,6 +981,10 @@ title = "Could not get virtual server: '%s'", desc = CODING_BUG) +e('CONNECTION_HTTP_METHOD', + title = "HTTP method not allowed.", + desc = "The connection's method is not allowed by the server.") + # cherokee/ncpus.c #