mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +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
|
request_stat_fields["status_" .. status_code] = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local lower_method = string.lower(method)
|
local lower_method = method and string.lower(method) or ""
|
||||||
if http_methods[lower_method] then
|
if lower_method ~= "" and http_methods[lower_method] then
|
||||||
request_stat_fields["http_" .. lower_method] = 1
|
request_stat_fields["http_" .. lower_method] = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user