From 7a85876436e9ebb01e0c28a6e5ace019f47240d5 Mon Sep 17 00:00:00 2001 From: Laurence Jones Date: Wed, 4 Sep 2024 09:11:59 +0100 Subject: [PATCH] enhance: allow code 444 (#74) Fix: #72 Allow the use of code 444 as a response code --- lib/plugins/crowdsec/utils.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/crowdsec/utils.lua b/lib/plugins/crowdsec/utils.lua index 0665c4c..174fd9e 100644 --- a/lib/plugins/crowdsec/utils.lua +++ b/lib/plugins/crowdsec/utils.lua @@ -14,6 +14,7 @@ M.HTTP_CODE["403"] = ngx.HTTP_FORBIDDEN M.HTTP_CODE["404"] = ngx.HTTP_NOT_FOUND M.HTTP_CODE["405"] = ngx.HTTP_NOT_ALLOWED M.HTTP_CODE["406"] = ngx.HTTP_NOT_ACCEPTABLE +M.HTTP_CODE["444"] = ngx.HTTP_CLOSE M.HTTP_CODE["500"] = ngx.HTTP_INTERNAL_SERVER_ERROR function M.read_file(path) @@ -54,4 +55,4 @@ function M.table_len(table) return count end -return M \ No newline at end of file +return M