From 47e63341ce045bf0d89012f6fc0fa8f4ad893d47 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 27 Jul 2022 11:40:31 +0800 Subject: [PATCH] Update webstats_log.lua --- plugins/webstats/lua/webstats_log.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webstats/lua/webstats_log.lua b/plugins/webstats/lua/webstats_log.lua index 20a87cbe2..f0ab9a670 100644 --- a/plugins/webstats/lua/webstats_log.lua +++ b/plugins/webstats/lua/webstats_log.lua @@ -928,7 +928,7 @@ log_by_lua_block { -- D("stat ok") -- only count non spider requests - local ok, err = pcall(function() statistics_uri(db, uri, ngx.md5(uri), body_length) end) + local ok, err = pcall(function() statistics_uri(db, request_uri, ngx.md5(request_uri), body_length) end) local ok, err = pcall(function() statistics_ip(db, ip, body_length) end) end