Update webstats_log.lua

This commit is contained in:
dami 2026-07-05 04:05:19 +08:00
parent d1dcdd4f25
commit 2e9f01d3ee
1 changed files with 2 additions and 2 deletions

View File

@ -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