mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-12 18:19:26 +08:00
Update webstats_log.lua
This commit is contained in:
@@ -233,8 +233,8 @@ local function run_app()
|
||||
request_stat_fields["status_" .. status_code] = 1
|
||||
end
|
||||
|
||||
local lower_method = string.lower(method)
|
||||
if http_methods[lower_method] then
|
||||
local lower_method = method and string.lower(method) or ""
|
||||
if lower_method ~= "" and http_methods[lower_method] then
|
||||
request_stat_fields["http_" .. lower_method] = 1
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user