mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Move set_metric misplaced in misc plugin
This commit is contained in:
parent
fe14c7b7f4
commit
9f168f1aeb
1 changed files with 1 additions and 1 deletions
|
|
@ -23,10 +23,10 @@ function misc:access()
|
|||
-- Check if method is allowed
|
||||
for allowed_method in self.variables["ALLOWED_METHODS"]:gmatch("[^|]+") do
|
||||
if method == allowed_method then
|
||||
self:set_metric("counters", "failed_method", 1)
|
||||
return self:ret(true, "method " .. method .. " is allowed")
|
||||
end
|
||||
end
|
||||
self:set_metric("counters", "failed_method", 1)
|
||||
return self:ret(true, "method " .. method .. " is not allowed", HTTP_NOT_ALLOWED)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue